Data Cleaning Tools and Resources
Processing data for the GCSFI project
What’s in our data?
- What types of data do we have?
- numeric | categoric | geographic | relationships | temporal
- How many variables do we have?
- How do our variables relate to each other?
- quantities/distribution | correlation | part of a whole | change over time | relationships
- What questions can we ask of this dataset?
Data types - WTF CSV
WTF CSV: a tool for basic data summaries - databasic.io/wtfcsv
- Download the dataset as a csv
- Upload it into WTF CSV (or use this link: GCSFI in WTF CSV)
- What do you notice? What can you observe here?
Variable Relationships - Nineteen
Nineteen: simple count visualizations - usenineteen.com
- Upload the dataset as a csv
- What categories can we compare?
- What do you notice about the results?
Text fields - Voyant
Voyant: a tool for text analysis and visualization - voyant-tools.org
- Try visualizing one column at a time
- Stopwords: select ‘Spanish’
Cleaning data
- Numbers, dates, geocoordinates
- Standardizing spelling and controlled terms
- Creating new columns
- Adding contextual data
- Summarizing data
Tools and resources for data analysis and cleaning
- Google Sheets
- Microsoft Excel
- usenineteen.com
- OpenRefine
- Hands-on Data Visualization: Interactive Storytelling from Spreadsheets to Code - textbook with many tutorials
Turning keywords into columns using Nineteen
- Using Nineteen, select ‘Palabras clave’ to group or color-code items and scroll all the way to the bottom
- Check “‘Palabras clave’ holds lists of values” and ‘Use “Palabras clave” for tags’
- Click on the tags icon on the right-hand bar
- For each tag you want, select the three dots on the right next to that tag
- Select ‘Convert this tag into a data field’
- Check ‘keep the tag too’
- Select ‘add data field’
- Repeat for however many keywords you want to use
- When you are done, download the dataset as a csv to use in another visualization tool
Summarizing data with pivot tables
Create a pivot table
- Copy the ‘cuentos’ tab to a new googlesheets document
- Give it a name and save it
- Select your data
- From the top menu, go to ‘Insert -> Pivot Table.’ Create it in a new sheet
Grouping by year/decade
- Under “Rows” add ‘Year’
- Under “Columns” add ‘Venue’
- Under “Values” add ‘Venue’
- Make sure it has ‘count’ selected under “Summarize by”
- Now you have values for year and venue. But what if you wanted to group by decade?
- Under ‘Year’ select ‘Create grouping rule’
- Under ‘Interval size’ enter 10
Visualization from pivot table
- Select your table
- Go to “Insert” -> “Chart”
- Change your chart type
- Give it a title
Next steps
To learn more about pivot tables, check out Hands on Data Visualization: Summarize Data with Pivot Tables
GCSFI Questions
Original questions
- Which author nationalities are published by which magazines?
- What are the topics that emerge across different publications from different areas?
- Men vs. women authors; the dates that they were born and active?
- Subjective data: themes and thematic keywords (subject) vs. demographic info? Other patterns?
- Dates - compare subjects/topics around same time period? E.g. 1960s, resistance/revolution?
- Average length of the stories - what is considered a “short” story?
- Translated works - choosing to represent a translated text?
Questions - updated
- Which author nationalities are published by which magazines?
- What are the topics that emerge across different publications in different areas?
- How does diegetic level compare across different publication areas?
- Men vs. women authors over time; when were they born and active?
- How does author gender change over time?
- Subjective data: themes and thematic keywords vs. demographic info?
- How does narrative temporality compare to author nationality or author gender?
- Dates - compare subjects/topics around same time period? E.g. 1960s, resistance/revolution?
- How does narrative temporality change over time?
- More difficult: identify 1-2 keywords or plot terms to chart
- Average length of the stories - requires cleaning and additional data
- Translated works
- Which publications or venue editors are translating more works?
- Are there regional differences between translated and untranslated?
Other options
- How is distribution of author gender or author nationality different for different publications? For different regions? Years?
- Literary form:
- Is there a relationship between diegetic level and anachronisms?
- How does either compare to translations? To time?
Using keywords for analysis
- Comparison: split the dataset by category (i.e. decade, author gender, publication location) and use Voyant to identify the top keywords in each sub-corpus.
- Selection: pick out a few top keywords and create a column for each one (True or False)
- Hierarchy: put the keywords into larger categories or visualize only the first one on the list (create a new column for these values)
Visualization resources & tools
Resources and inspiration
- From Data to Viz
- Use your imagination! Draw your visualization on paper.
- For inspiration: Dear Data project, Georgia Lupi & Stefanie Posavec; the winners of the Information is Beautiful Awards
Data visualization tools
- RawGraphs.io
- Google Sheets
- Microsoft Excel
- Datawrapper
- Palladio
- GephiLite - network graphs
- Timeline JS
- Wordclouds: WordClouds.com
- Includes phrases: Toolbook.io wordclouds