NLP, Classification, Data Science, Data Science Projects.
dataframe into array print(target.sum(axis=0) / target.shape[0]) Percentage of toxic comments in the train set Same for the test set: keys = ['toxic', 'severe_toxic', 'obscene', 'threat','insult', 'identity_hate'] test[keys].sum(axis=0) /test.shape[0] Percentage of toxic comments in the test set