Step 11: Word Frequency Analysis
After preprocessing the text, you can analyze the frequency of words in the reviews. This can help identify common themes or topics.
from collections import Counter
# Count the frequency of words in the reviews
word_counts = Counter(' '.join(df['review_body_clean']).split())
# Print the 10 most common words
print(word_counts.most_common(10))