Skip to content

Instantly share code, notes, and snippets.

@devamitranjan
Created December 15, 2020 17:23
Show Gist options
  • Save devamitranjan/915c65fb8d6ae8f8894ec306665e9e18 to your computer and use it in GitHub Desktop.
Save devamitranjan/915c65fb8d6ae8f8894ec306665e9e18 to your computer and use it in GitHub Desktop.
def print_neutral_comments():
print('Printing neutral comments:\n')
sortedDF = df.sort_values(by=['Polarity'])
for i in range(0, sortedDF.shape[0] ):
if( sortedDF['Analysis'][i] == 'Neutral'):
print(str(i+1) + '> '+ sortedDF['Comments'][i])
print()
print_neutral_comments()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment