Grouping and summarizing data

Marketing Analytics: Predicting Customer Churn in Python

Mark Peterson

Director of Data Science, Infoblox

Churners and non-churners

print(telco['Churn'].value_counts())
no     2850
yes     483
Name: Churn, dtype: int64
Marketing Analytics: Predicting Customer Churn in Python

Model outcomes

Two classes:

  • 'yes': Customer will churn
  • 'no': Customer will not churn
Marketing Analytics: Predicting Customer Churn in Python

Differences between churners and non-churners

  • Do churners call customer service more often?
  • Does one state have more churners compared to another?
Marketing Analytics: Predicting Customer Churn in Python

Grouping and summarizing data

  • .groupby()
Marketing Analytics: Predicting Customer Churn in Python

Let's group and summarize!

Marketing Analytics: Predicting Customer Churn in Python

Preparing Video For Download...