Created
December 15, 2020 17:23
-
-
Save devamitranjan/915c65fb8d6ae8f8894ec306665e9e18 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
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