Created
May 26, 2022 02:46
-
-
Save srang992/e4519c2964ff4a05160b12e5fe132dea to your computer and use it in GitHub Desktop.
This file contains 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
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