TATR: Panda and CSV of Tweets
This recipe is part of the Text Analysis for Twitter Research (TATR) series. The recipe will show how to load and save a CSV (comma-separated values) file into a Panda data structure.
- Python 3
- Twitter data
- Kynan Ly’s sample code on TAPoR
- Open a new Jupyter Notebook and import the following libraries:
- Create a Panda dataframe
- Import your Twitter data into the following 4 columns:
- Write a function that reads the dataframe and converts it into a CSV
- Write a function that reads the saved dataframe and loads the CSV back in
- Display the results
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:
This recipe describes components that are fundamental for some of the more advanced TATR notebooks.