Data Cleaning and Visualization

Processing data for the GCSFI project

Author

Alice McGrath

Published

October 26, 2026

Outline

Part I: Data Exploration (Monday 2026.10.26)

Part II: Data Visualization (Wednesday 2026.10.26)

Part III: Strategizing (Monday 2026.11.02)

Data Exploration

  • What can you quantify?
  • What can you observe for close analysis?
  • What questions would you like to answer?

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: 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?

Relationships

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: a tool for text analysis and visualization - voyant-tools.org

  • Try visualizing one column at a time
  • Stopwords: select ‘Spanish’

Data visualization

Wednesday, October 28

Data visualization process

graph LR
    A(Collect data) --> B(Clean & <br>document data)
    C(Find a<br> dataset)--> B
    B-->D[Analyze<br>data]
    D-->H(Decide what<br> to show)
    H-->E(Choose <br>visualization<br>type)
    E-->I(Customize it)
    H-->F(Design a viz<br> from scratch)
    F-->G(Tell the <br>data story)
    I-->G

Next steps

What types of cleaning, organization, or summarizing do we need to do?

  • Simple accuracy?
  • Improved machine-readability?
  • Analysis and summary?
  • Bringing in context?

Data Cleaning

  • Numbers, dates, geocoordinates
  • Standardizing spelling and controlled terms
  • Creating new columns
  • Adding contextual data
  • Summarizing data

Choosing visualizations

from Data to Viz

Planning a visualization

  • What will you show?
  • What graph types would best communicate your data story?
  • How will you design your visualization?

What will you show?

  • All variables?
  • Relationships between variables?
  • Summaries?
  • Every data point?

What type of graph?

Design considerations

  • What methods can you use to convey your variables?
  • How can you make the results visually compelling and communicative?
  • How can you make them more accessible?

Examples

From Bryn Mawr:

In the wild - Data Art slides

Draw your data!

  • Choose a question you’d like to answer
  • Choose a method to visualize
  • Sketch it out with pen and paper

Data analysis and cleaning tools

Data visualization tools

Resources

III. Strategizing

Monday, November 2

Questions - GCSFI

  1. Which author nationalities are published by which magazines?
  2. What are the topics that emerge across different publications from different areas?
  3. Men vs. women authors; the dates that they were born and active?
  4. Subjective data: themes and thematic keywords (subject) vs. demographic info? Other patterns?
  5. Dates - compare subjects/topics around same time period? E.g. 1960s, resistance/revolution?
  6. Average length of the stories - what is considered a “short” story?
  7. Translated works - choosing to represent a translated text?

Questions - updated

  1. Which author nationalities are published by which magazines?
  2. What are the topics that emerge across different publications in different areas?
    • How does diegetic level compare across different publication areas?
  3. Men vs. women authors over time; when were they born and active?
    • How does author gender change over time?
  4. Subjective data: themes and thematic keywords vs. demographic info?
    • How does narrative temporality compare to author nationality or author gender?

Questions - updated

  1. 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
  2. Average length of the stories - requires cleaning and additional data
  3. 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: a few options

  1. 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.
  2. Selection: pick out a few top keywords and create a column for each one (True or False)
  3. Hierarchy: put the keywords into larger categories or visualize only the first one on the list (create a new column for these values)

Turning keywords into columns

  • 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

Pivot tables

  1. Copy the ‘cuentos’ tab to a new googlesheets document
  2. Give it a name and save it
  3. Select your data
  4. From the top menu, go to ‘Insert -> Pivot Table.’ Create it in a new sheet

Grouping by year/decade

  1. Under “Rows” add ‘Year’
  2. Under “Columns” add ‘Venue’
  3. Under “Values” add ‘Venue’
    1. Make sure it has ‘count’ selected under “Summarize by”
  4. Now you have values for year and venue. But what if you wanted to group by decade?
  5. Under ‘Year’ select ‘Create grouping rule’
  6. Under ‘Interval size’ enter 10

Grouping by author nationality and Gender

  • Under “Rows” select “Nationality”
  • Under “Columns” select “Gender”
  • What if you want just Spanish-speaking authors?
    • Under “Filter” select “Translation” and check “No”

Visualization from pivot table

  • Select your table
  • Go to “Insert” -> “Chart”
  • Change your chart type
  • Give it a title

Next steps

To learn more, check out Hands on Data Visualization: Summarize Data with Pivot Tables

A warning

Correlation is not causation

Spurious Correlations, by Tyler Vigen.