CTR voorspellen met Machine Learning in Python
Kevin Huo
Instructor



.isin(): df.columns.isin(['device'])]y is de kolom met kliks; CTR is: 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
CTR voorspellen met Machine Learning in Python