Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@abhishek-shrm
Created September 22, 2020 10:12
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 abhishek-shrm/746374ebfe9f0fb3456b8a97e19f34dc to your computer and use it in GitHub Desktop.
Save abhishek-shrm/746374ebfe9f0fb3456b8a97e19f34dc to your computer and use it in GitHub Desktop.
# Printing class distribution in percentage
for i in ['toxic','severe_toxic','obscene','threat','insult','identity_hate']:
print(df_train[i].value_counts(normalize=True)*100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment