Screen Link: https://app.dataquest.io/m/468/business-metrics/8/churn-rate
Instructions given:
3. Calculate the churn rate for each month:
- Divide the
total_customers
column bytotal_churned
- Assign the result to a column called
churn_rate
Shouldn´t this be the other way round?
–> divide the total_churned
column by total_customers
Your Code:
churn["churn_rate"] = churn.total_churned/churn.total_customers