题解 | 短视频用户数据分析
import pandas as pd df = pd.read_csv('Tk.csv', dtype={'ID':object}) data_1 = df['Days'].median() data_2 = max(df['Fans']) data_3 = round(df[df['Days']>0]['Cost'].mean(), 2) print(data_1) print(data_2) print(data_3)
import pandas as pd df = pd.read_csv('Tk.csv', dtype={'ID':object}) data_1 = df['Days'].median() data_2 = max(df['Fans']) data_3 = round(df[df['Days']>0]['Cost'].mean(), 2) print(data_1) print(data_2) print(data_3)
相关推荐