Created
December 15, 2020 17:20
-
-
Save devamitranjan/9d5a121a1a0815c59275983b61aa53f6 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_negative_comments(): | |
print('Printing negative comments:\n') | |
sortedDF = df.sort_values(by=['Polarity']) | |
for i in range(0, sortedDF.shape[0] ): | |
if( sortedDF['Analysis'][i] == 'Negative'): | |
print(str(i+1) + '> '+ sortedDF['Comments'][i]) | |
print() | |
print_negative_comments() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment