rogerchen
rogerchen
全部文章
分类
题解(11)
归档
标签
去牛客网
登录
/
注册
rogerchen的博客
TA的专栏
74篇文章
186人订阅
一个普通数据人的成长之路
74篇文章
16106人学习
全部文章
(共25篇)
题解 | #最近7天每天的人均停留时长和次均有效时长#
考察内容:聚合函数、条件函数、日期函数、空值转换函数、排序思路:① 先计算每个用户每天的停留时长:timestampdiff(second, start_time, end_time) ② 计算最近7天每天的人均停留时长和次均有效时长:人均停留时长指每个人的总停留时长的平均值,次均有效时长指每次有效...
2023-02-28
2
334
题解 | #每天的平均uv点击率和平均曝光点击率#
考察内容:聚合函数、去重、字符串函数、排序思路:① 先计算22年9月每天每个视频的uv点击率 uctr 和曝光点击率 pctr:用 date_format(ds, '%Y%m') = '202209'筛选时间,uv点击率=点击人数/分发人数,曝光点击率=点击次数/分发次数分发次数:count(uid...
2023-02-28
1
451
题解 | #点击率排名与转化率排名差异#
考察内容:聚合函数、窗口函数、模糊查询、数据类型转换、排序思路:① 先计算22年8月各个用户对广告资源(资源ID以'ad'开头)的点击率排名与转化率排名:使用模糊查询筛选22年8月的广告 event_date like '2022-08%' and rid like 'ad%',时间筛选也可以用 d...
2023-02-28
1
273
题解 | #广告点击率排名#
考察内容:多表关联、聚合函数、窗口函数、模糊查询、排序思路:① 先找22年7月广告(资源ID以'ad'开头)点击率排前3的用户:使用模糊查询筛选22年7月的广告 event_date like '2022-07%' and rid like 'ad%',广告点击率=广告点击数/广告曝光数,使用窗口函...
2023-02-28
1
252
题解 | #找出待召回的流失用户#
考察内容:count(distinct)、max,having,datediff,order by思路:① 按用户分组,统计每个用户的登录天数和登录次数② 取每个用户最后一次登录日期,表中最大日期作为当前日期,用 having 筛选用户最后一次登录日期距今30天及以上且至少登录过3天或4次的用户③ ...
2023-02-27
1
201
题解 | #日活次日留存率和新户次日留存率#
考察内容:left join,date_sub,date_format,case when,min/count,distinct,round思路:① 取用户每天的登录记录,并对用户去重(distinct uid)② 关联前一天( date_sub(login_date, interval 1 day...
2023-02-27
1
359
题解 | #用pandas查看牛客网用户数据#
pd.DataFrame.head:Return the first n rows for the object based on position. head(self: ~FrameOrSeries, n: int = 5) -> ~FrameOrSeries Return the...
2022-07-09
7
427
题解 | #多报名表的运动项目人数统计#
pd.concat:Concatenate pandas objects along a particular axis with optional set logic along the other axes. pd.DataFrame.join: Join columns with other ...
Python3
2022-07-07
9
288
题解 | #统计运动会项目报名人数(二)#
pd.DataFrame.join: Join columns with other DataFrame either on index or on a key column join(self, other, on=None, how='left', lsuffix='&...
Python3
2022-07-07
4
221
题解 | #多报名表的运动项目人数统计#
pd.concat:Concatenate pandas objects along a particular axis with optional set logic along the other axes. pd.DataFrame.join: Join columns with other ...
Python3
2022-07-06
1
202
首页
上一页
1
2
3
下一页
末页