Skip to content
← All projects

American Art Gallery Data Cleaning via Native String Manipulation

Preview image for American Art Gallery Data Cleaning via Native String Manipulation

Cleaned and structured raw catalog records from the American Art Gallery using native Python and standard file handling, transforming unstructured text into an analysis-ready dataset without relying on third-party libraries.

The Cleaning Process

  • File Ingestion: Iterated through raw catalog rows efficiently using Python's native csv.reader.
  • String Cleaning: Used built-in .replace() methods to eliminate unwanted special characters, inconsistent non-standard formatting, and extra whitespace from text fields.
  • Text Parsing: Applied .split() logic to break apart combined metadata attributes—such as dates, dimensions, and multi-artist entries—into distinct, structured columns.

How I Built It

  • Environment: Developed and tested inside a Jupyter Notebook for step-by-step validation of string transformations.
  • Tech Stack: Python 3 (Standard Library modules: csv, built-in string methods).

A Problem I Solved

Raw multi-artist entries and dimensions were crammed into single columns with inconsistent delimiters and messy whitespace, which broke standard record separation. I wrote custom iterative parsing logic to systematically detect separators, clean trailing artifacts, and split compound fields cleanly into separate columns.

Key Highlights

  • Processed and standardized 100% of raw catalog rows.
  • Eliminated manual data entry errors through automated script-based cleaning.
  • Delivered a clean, uniform CSV dataset ready for downstream gallery analytics and visualization.

View Code On GitHub