Skip to content

Instantly share code, notes, and snippets.

@ParthNipunDave
Created April 12, 2021 09:43
Show Gist options
  • Select an option

  • Save ParthNipunDave/6ebd5327cde56c5be1598e504bbb63c2 to your computer and use it in GitHub Desktop.

Select an option

Save ParthNipunDave/6ebd5327cde56c5be1598e504bbb63c2 to your computer and use it in GitHub Desktop.
#Unique Values
data['Contract'].unique()
# Value Count and visualization
print("Contract\n",data["Contract"].value_counts())
sns.countplot(data=data,x="Contract")
# Contract Wise Churn Rate
sns.countplot(data=data,x="Contract",hue="Churn")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment