牛客9421352号
牛客9421352号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客9421352号的博客
全部文章
(共24篇)
题解 | #牛客网的第10位用户#
import pandas as pd df=pd.read_csv('Nowcoder.csv',dtype=object) print(df.iloc[10])
2023-08-09
0
268
题解 | #牛客网用户数据集的大小#
import pandas as pd dt=pd.read_csv('Nowcoder.csv',dtype=object) print(dt.shape)
2023-08-09
0
272
题解 | #用pandas查看牛客网用户数据#
import pandas as pd df=pd.read_csv('Nowcoder.csv',dtype=object) print(df.head(6))
2023-08-09
0
300
题解 | #查找入职员工时间排名倒数第三的员工所有信息#
select emp_no,birth_date,first_name,last_name,gender,hire_date from ( select *, dense_rank() over(order by hire_date desc) px from employees )b wher...
2023-03-03
0
170
题解 | #查找当前薪水详情以及部门编号dept_no#
select a.* ,b.dept_no from salaries a inner join dept_manager b on a.emp_no=b.emp_no and a.to_date =b.to_date order by a.emp_no
2023-03-03
0
136
题解 | #牛客每个人最近的登录日期(四)#
#第一遍做:成功 #select distinct date, sum(case when d=date then 1 else 0 end) #from #( # select l.user_id as user_id,l.date as date,t.d as d ...
2023-02-10
0
211
题解 | #浙大不同难度题目的正确率#
select difficult_level, round(sum(case when result='right' then 1 else 0 end)/count(question_id),4) correct_rate from ( select a.device_id,university...
2023-02-10
0
253
题解 | #统计复旦用户8月练题情况#
select id1, university, count(question_id) question_cnt , sum(case when result='right' then 1 else 0 end) right_question_cnt from ( select device_id ...
2023-02-10
0
249
题解 | #计算用户的平均次日留存率#
select round(count(d2)*1.0/count(d1)*1.0,4) from ( select distinct device_id,date d1 from question_practice_detail )b left outer join ( select dist...
2023-02-10
0
246
题解 #牛客每个人最近的登录日期(三)#
#方法一:成功了 #思路:1、找出用户名和他的第一次登录日期,计算出理论上的第二次登陆日期 # 2、找出用户名和他实际的第二次登陆日期 # 3、第一步左连接第二步,链接条件:“用户名相等”和“第一步的2次理论登录=第二步的2次实际登录” # 4、计算 #select ro...
2023-02-10
0
286
首页
上一页
1
2
3
下一页
末页