Wrangling Messy CSV Files by Detecting Row and Type Patterns
Not on the map. Why?
Abstract (arXiv)
It is well known that data scientists spend the majority of their time on preparing data for analysis. One of the first steps in this preparation phase is to load the data from the raw storage format. Comma-separated value (CSV) files are a popular format for tabular data due to their simplicity and ostensible ease of use. However, formatting standards for CSV files are not followed consistently, so each file requires manual inspection and potentially repair before the data can be loaded, an enormous waste of human effort for a task that should be one of the simplest parts of data science. The first and most essential step in retrieving data from CSV files is deciding on the dialect of the file, such as the cell delimiter and quote character. Existing dialect detection approaches are few and non-robust. In this paper, we propose a dialect detection method based on a novel measure of data consistency of parsed data files. Our method achieves 97% overall accuracy on a large corpus of real-world CSV files and improves the accuracy on messy CSV files by almost 22% compared to existing approaches, including those in the Python standard library.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). First posted on arXiv 27 Nov 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 0; 2023: 2; 2024: 0; 2025: 1; 2026: 2.
6 papers.
- 2023Table-GPT: Table-tuned GPT for Diverse Table Taskscited by 69
- 2021GitTables: A Large-Scale Corpus of Relational Tablescited by 44
- 2023Unsupervised clustering of file dialects according to monotonic decompositions of mixturescited by 0
- 2025TEN: Table Explicitization, Neurosymbolicallycited by 0
- 2026Robustness of AutoML on Dirty Categorical Datacited by 0
- 2026Quality-preserving Model for Electronics Production Quality Tests Reductioncited by 0
- 2026Quality-preserving Model for Electronics Production Quality Tests Reduction7 Apr 2026
- 2026Robustness of AutoML on Dirty Categorical Data31 Jan 2026
- 2025TEN: Table Explicitization, Neurosymbolically12 Aug 2025
- 2023Table-GPT: Table-tuned GPT for Diverse Table Tasks13 Oct 2023
- 2023Unsupervised clustering of file dialects according to monotonic decompositions of mixtures9 Feb 2023
- 2021GitTables: A Large-Scale Corpus of Relational Tables14 Jun 2021