FeaturedData Cleaning in Python and SQL: The Production Pipeline (and a 3M-Row Benchmark)
Most data cleaning tutorials stop at df.dropna(). In production, dirty CSVs hide sentinel strings ('N/A', '-'), mixed date formats, duplicate business keys, and silent type coercion. A 6-step pipeline with quarantine tables plus a 3M-row benchmark of Polars, DuckDB, and pandas.
Key takeawayNever infer numeric or date schemas on initial ingest of dirty CSVs: read raw columns as strings first, normalize sentinels ('', 'N/A', 'null', '-') to true NULL, and parse explicitly so bad values do not crash the pipeline.















