TATR: Graphing Twitter Data
Introduction
This recipe is part of the Text Analysis for Twitter Research (TATR) series and describes how to begin plotting basic graphs using Twitter data.
Ingredients
- Python 3
- Panda
- Numpy
- Matplotlib (Plotting)
- Twitter Tweet data
- Kynan Ly’s sample code available on TAPoR
Steps
- Open a new Jupyter Notebook and import the following libraries:
- NLTK
- PANDAS
- NUMPY
- MATPLOTLIB
- Import Twitter data
- Index the Tweets by date to make them more readable
- Write a graphing function that:
- Plots one column of the data
- Plots different columns and compares them against each other over time
- Plot the graphs and save the resulting visualizations
Discussion
The TATR library was presented as an academic poster in 2018’s Congress held in Regina, SK. For a PDF version of the full poster, please visit:
Status
Submitted by Jason on Tue, 05/01/2018 - 16:52