题解 | #用分位数分析牛客网用户活动#
用分位数分析牛客网用户活动
https://www.nowcoder.com/practice/23176901242f4842ae0d8ab3ac0df407
pd.quantile()为求分位数操作,需要自行在里面添加数值
默认值:
quantile( q=0.5, axis: 'Axis' = 0, numeric_only: 'bool' = True, interpolation: 'str' = 'linear', )实现代码:
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') print(Nowcoder[['Achievement_value','Continuous_check_in_days']].quantile(q=0.25)) print(Nowcoder[['Num_of_exercise','Number_of_submissions']].quantile(q=0.75))
数据分析刷题专栏 文章被收录于专栏
这个专栏就是刷题!刷题!刷题!