Skip to content

Instantly share code, notes, and snippets.

@ParthNipunDave
Created April 12, 2021 07:31
Show Gist options
  • Select an option

  • Save ParthNipunDave/936f9db5a9e7091138f4168ad19e4b9f to your computer and use it in GitHub Desktop.

Select an option

Save ParthNipunDave/936f9db5a9e7091138f4168ad19e4b9f to your computer and use it in GitHub Desktop.
This attribute tells us whether or not customer is senior citizen. Let's see whether or not being senior citizen makes any significant difference in churn rate.
data['SeniorCitizen'].unique() # Checking unique values in this attribute
print("Senior Citizen \n",data['SeniorCitizen'].value_counts()) # Value counts
sns.countplot(data=data,x='SeniorCitizen') # Count Senior Citizen
sns.countplot(data=data,x='SeniorCitizen',hue='Churn') # Churn rate senior citizen wise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment