diff options
Diffstat (limited to 'predictor.py')
| -rw-r--r-- | predictor.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/predictor.py b/predictor.py new file mode 100644 index 0000000..77a0343 --- /dev/null +++ b/predictor.py @@ -0,0 +1,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() + |
