Dự đoán CTR với Machine Learning trong Python
Kevin Huo
Instructor



.isin(): df.columns.isin(['device'])]y là cột nhấp, tính 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
Dự đoán CTR với Machine Learning trong Python