A Python tool that reads customer reviews from a CSV file, scores each review’s sentiment using TextBlob, and prints a summary of what customers feel.
Note: This is a recreated version of my coursework project. The original files were lost with my old laptop, so I rebuilt it from scratch.
reviews.csvcontains sample reviews written for demonstration.
reviews.csv (columns: review_id, review_text)results.csvpip install -r requirements.txt
python analyze_reviews.py
To use your own data, create a CSV with the same two columns and run:
python analyze_reviews.py my_reviews.csv
| Polarity | Label | |—|—| | above 0.1 | Positive | | -0.1 to 0.1 | Neutral | | below -0.1 | Negative |
Python 3.9+, TextBlob, csv, collections