I want to count the number of times a word is being repeated in the review string
I am reading the csv file and storing it in a python dataframe using the below line
Well, the problem is with:
reviews["review"]
The above is a Series. In your first snippet, you are doing this:
reviews["review"][1].split("disappointed")
That is, you are putting an index for the review. You could try looping over all rows of the column and perform your desired action. For example:
for index, row in reviews.iterrows():
print len(row['review'].split("disappointed"))