Created
April 12, 2021 07:31
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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