PythonでMachine Learningを使ってCTRを予測する
Kevin Huo
Instructor



.isin()で実行: df.columns.isin(['device'])]yがクリック列なら、CTRは y.sum()/len(y) で算出print(df.device_type.value_counts())
1 45902
0 2947
print(df.groupby('device_type')['click'].sum())
0 633
1 7890
PythonでMachine Learningを使ってCTRを予測する