牛客794288350号
牛客794288350号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客794288350号的博客
全部文章
(共50篇)
题解 | 牛客网用户练习的平均次日留存率
import pandas as pd from datetime import timedelta nowcoder = pd.read_csv("nowcoder.csv") # 总数 total_id = nowcoder["user_id"].cou...
2025-06-24
0
10
题解 | 查询出每个品牌在不同月份的总销售额以及购买该品牌商品的用户的平均年龄
select o.category_id, round(sum(o.order_amount),2) as total_sales, count(case when c.customer_gender='男' then 1 else null end) as male_cus...
2025-06-24
0
26
题解 | 统计牛客网用户的名字长度
import pandas as pd df=pd.read_csv('Nowcoder.csv') print(df['Name'].str.len())
2025-06-24
0
8
题解 | 牛客用户刷题量的方差与提交次数的标准差
import pandas as pd df=pd.read_csv('Nowcoder.csv') A=df['Num_of_exercise'].var() print("%.2f"%A) B=df['Number_of_submissions'].std() print...
2025-06-24
1
10
题解 | 用分位数分析牛客网用户活动
import pandas as pd df=pd.read_csv('Nowcoder.csv') print(df[['Achievement_value', 'Continuous_check_in_days']].quantile(0.25)) print(df[['Num_of_ex...
2025-06-24
0
9
题解 | 分析每个员工在不同项目中的绩效情况
select e.employee_id, e.employee_name, coalesce(pe.performance_score,0) as first_half_2024_score, row_number() over (partition by pr.p...
2025-06-23
0
17
题解 | 分析每个商品在不同时间段的销售情况
select product_id, product_name, q2_2024_sales_total, row_number() over (partition by category order by q2_2024_sales_total desc,produ...
2025-06-23
0
19
题解 | 各个部门实际平均薪资和男女员工实际平均薪资
select sf.department, round(avg(sy.normal_salary - sy.dock_salary), 2) as average_actual_salary, ifnull(round(avg(if(sf.staff_gender='mal...
2025-06-22
1
11
题解 | 统计每个产品的销售情况
with year as ( select p.product_id, sum(p.unit_price * o.quantity) as total_sales, sum(o.quantity) as total_quantity ...
2025-06-22
0
15
题解 | 下单最多的商品
select product_id, count(*) as cnt from user_client_log where step='order' group by product_id order by cnt desc limit 1 注意审题!是下单量最多!
2025-06-21
0
13
首页
上一页
1
2
3
4
5
下一页
末页