Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def load_tweets(tweet_file):
- """ Load and process a Twitter analytics data file """
- # Read tweet data (obtained from Twitter Analytics)
- tweet_df = pd.read_csv(tweet_file)
- # Drop irrelevant columns
- tweet_df = tweet_df.drop(tweet_df.columns[[13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39]], axis=1)
- return tweet_df
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement