Skip to content

Instantly share code, notes, and snippets.

@srang992
Created May 26, 2022 02:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srang992/e4519c2964ff4a05160b12e5fe132dea to your computer and use it in GitHub Desktop.
Save srang992/e4519c2964ff4a05160b12e5fe132dea to your computer and use it in GitHub Desktop.
churned = tel_data_selected[tel_data_selected['churn']==1]
not_churned = tel_data_selected[tel_data_selected['churn']==0]
print('percentage of churned customer: {}'.format(churned.shape[0]/tel_data_selected.shape[0]))
print('percentage of not-churned customer: {}'.format(not_churned.shape[0]/tel_data_selected.shape[0]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment