Skip to content

Instantly share code, notes, and snippets.

@agastidukare
Created August 9, 2020 04:10
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 agastidukare/8f2ac9528ca4ff3590bc3f7452b6f4a4 to your computer and use it in GitHub Desktop.
Save agastidukare/8f2ac9528ca4ff3590bc3f7452b6f4a4 to your computer and use it in GitHub Desktop.
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