Created
August 9, 2020 04:10
-
-
Save agastidukare/8f2ac9528ca4ff3590bc3f7452b6f4a4 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
print(df.isnull().sum()) | |
pos_sum = df[df['airline_sentiment']=='positive'] | |
neu_sum = df[df['airline_sentiment']=='neutral'] | |
neg_sum = df[df['airline_sentiment']=='negative'] | |
zero_sum = df[df['negativereason_confidence']==0] | |
print('------------------------------------------------------') | |
print('total_non_neg = ',len(pos_sum)+len(neu_sum)) | |
print('total zeros in neg_confidence = ',len(zero_sum)) | |
print('------------------------------------------------------') | |
print('total_rows = ',len(pos_sum)+len(neu_sum)+len(neg_sum)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment