垫底菜鸡
垫底菜鸡
全部文章
分类
归档
标签
去牛客网
登录
/
注册
垫底菜鸡的博客
全部文章
(共53篇)
题解 | #用where过滤空值练习#
Select device_id,gender,age,university from user_profile where age <> 'null' 可能在这里年龄是文本,所以需要在null的边上加上引号
2023-03-02
0
171
题解 | #查找除复旦大学的用户信息#
SELECT device_id,gender,age,university from user_profile where university <> "复旦大学" 我一度很担心不等于是不是这样子用,没想到真的可以
2023-03-01
0
204
题解 | #查找某个年龄段的用户信息#
SELECT device_id,gender,age from user_profile where age<=23 很奇怪的现象,20<=age<=23,出来就是所有的数,难道是where后不接受两边夹数的表达方式吗?
2023-03-01
0
267
题解 | #查找学校是北大的学生信息#
SELECT device_id,university from user_profile Where university="北京大学" Select的S必须要大写
2023-03-01
0
225
题解 | #将查询后的列重新命名#
select device_id from user_profile where id <=2 这里有点问题,明明没能改列名,却说通过了select device_id as user_infos_example from user_profile limit 2应当需要加上as才是改名的
2023-03-01
0
199
题解 | #查询结果去重#
SELECT distinct university from user_profile 用于提取出去重的数
2023-03-01
0
197
题解 | #查询多列#
SELECT device_id,gender,age,university from user_profile 选取某几列的数据
2023-03-01
0
221
题解 | #查询所有列#
Select * from user_profile 提取表格内的所有数据
2023-03-01
0
192
题解 | #牛客网用户没有补全的信息#
import sys import pandas as pd df = pd.read_csv("Nowcoder.csv") print(df.isna().any()) df.isnull().any()则会判断哪些”列”存在缺失值。我一开始使用了isnull函数,并不符合题解,它对每一个数据...
2023-02-21
0
333
题解 | #统计牛客网部分用户使用语言#
import sys import pandas as pd df = pd.read_csv("Nowcoder.csv") print(df.iloc[10:20,5]) 利用iloc寻找具体行和列的数据信息
2023-02-21
0
210
首页
上一页
1
2
3
4
5
6
下一页
末页