Sentiment Analysis.py

#Sentiment-Analysis.py

The purpose of this code is to analyze the sentiment of any tweeter user input into this file to then correlate it bitcoin price. The goal is to be able to find users who can relatively predict the price of bitcoin up to a few days later.

Libraries will include, numpy, pandas, matplotlib, tweepy, seaborn, and plotly.

Enter Twitter handle below

#Enter-Twitter-handle-below

Creates function to grab the last x tweets from specified twitter handle

#Creates-function-to-grab-the-last-x-tweets-from-specified-twitter-handle

Initial cleaning of data

#Initial-cleaning-of-data

Sum and plot data of specified user

#Sum-and-plot-data-of-specified-user
Loading output library...
Loading output library...
Loading output library...

Getting Bitcoin price history

#Getting-Bitcoin-price-history
Loading output library...
Loading output library...

Combining bitcoin_df with tweet_df

#Combining-bitcoin_df-with-tweet_df

Visualizing data

#Visualizing-data
Loading output library...