aboutsummaryrefslogtreecommitdiff
path: root/predictor.py
blob: 77a034367758822ae35acdb424345a7469e66967 (plain)
1
2
3
4
5
6
7
8
9
import pandas as pd
import matplotlib.pyplot as plt

tweets = pd.read_csv('tweets.csv')

# Plot the number of tweets by sentiment
tweets.groupby('sentiment').count()['tweet'].plot.bar()
plt.show()