Wrangling messy CSV files by detecting row and type patterns
Open accessThe DOI matches its Crossref record; 25 of the 25 references it cites were found in a registry or an index.
Abstract
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. Our measure of data consistency is not specific to the data parsing problem, and has potential for more general applicability.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
A relational model of data for large shared data banks
Codd, E. F. (1970) · Communications of the ACM · doi:10.1145/362384.362685 · Cited by 5,547 · cited 2×
“(1) where the sets Vj are the domains of values in the tuples (Codd, 1970).”
BackgroundA relational model of data for large shared data banks
Codd, E. F. (1983) · Communications of the ACM · doi:10.1145/357980.358007 · Cited by 4,796
mediation:R Package for Causal Mediation Analysis
Tingley, D., Yamamoto, T., Hirose, K., Keele, L., & Imai, K. (2014) · Journal of Statistical Software · doi:10.18637/jss.v059.i05 · Cited by 4,155
Representation of Events in Nerve Nets and Finite Automata
Kleene, S. C. (1956) · Automata Studies. (AM-34) · doi:10.1515/9781400882618-002 · Cited by 1,655
The application/json Media Type for JavaScript Object Notation (JSON)
Crockford, D. (2006) · doi:10.17487/rfc4627 · Cited by 963
Wickham, H. (2014) · Journal of Statistical Software · doi:10.18637/jss.v059.i10 · Cited by 901
Exploratory Data Mining and Data Cleaning
Dasu, T., & Johnson, T. (2003) · Wiley Series in Probability and Statistics · doi:10.1002/0471448354 · Cited by 618
Wrangler: interactive visual specification of data transformation scripts
Kandel, S., Paepcke, A., Hellerstein, J., & Heer, J. (2011) · Proceedings of the SIGCHI Conference on Human Factors in Computing Systems · doi:10.1145/1978942.1979444 · Cited by 581
Raymond, E. S. (2003) · Cited by 441
Table extraction using conditional random fields
Pinto, D., McCallum, A., Wei, X., & Croft, W. B. (2003) · Proceedings of the 26th annual international ACM SIGIR conference on Research and development in informaion retrieval · doi:10.1145/860435.860479 · Cited by 355
Common Format and MIME Type for Comma-Separated Values (CSV) Files
Shafranovich, Y. (2005) · doi:10.17487/rfc4180 · Cited by 295
FlashExtract: a framework for data extraction by examples
Le, V., & Gulwani, S. (2014) · Proceedings of the 35th ACM SIGPLAN Conference on Programming Language Design and Implementation · doi:10.1145/2594291.2594333 · Cited by 209
Proactive wrangling: mixed-initiative end-user programming of data transformation scripts
Guo, P. J., Kandel, S., Hellerstein, J. M., & Heer, J. (2011) · Proceedings of the 24th annual ACM symposium on User interface software and technology · doi:10.1145/2047196.2047205 · Cited by 109
Learning to recognize tables in free text
Ng, H. T., Lim, C. Y., & Koo, J. L. T. (1999) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.3115/1034678.1034746 · Cited by 90
From dirt to shovels: fully automatic tool generation from ad hoc data
Fisher, K., Walker, D., Zhu, K. Q., & White, P. (2008) · Proceedings of the 35th annual ACM SIGPLAN-SIGACT symposium on Principles of programming languages · doi:10.1145/1328438.1328488 · Cited by 82
8th USENIX Workshop on the Theory and Practice of Provenance (TaPP '16)
Abreu, R., Archer, D., Chapman, E., Cheney, J., Eldardiry, H., & Gascón, A. (2016) · Cited by 75
A Machine Learning Approach for Layout Inference in Spreadsheets
Koci, E., Thiele, M., Romero, O., & Lehner, W. (2016) · International Joint Conference on Knowledge Discovery, Knowledge Engineering and Knowledge Management · doi:10.5220/0006052200770088 · Cited by 60
FlashExtract: a framework for data extraction by examples
Le, V., & Gulwani, S. (2014) · ACM SIGPLAN Notices · doi:10.1145/2666356.2594333 · Cited by 59
Characteristics of Open Data CSV Files
Mitlöhner, J., Neumaier, S., Jürgen Umbrich, A., & Polleres, A. (2016) · International Conference on Open and Big Data (OBD) · doi:10.1109/obd.2016.18 · Cited by 53
DeExcelerator: a framework for extracting relational data from partially structured documents
Eberius, J., Werner, C., Thiele, M., Braunschweig, K., Dannecker, L., & Lehner, W. (2013) · ACM International Conference on Information and Knowledge Management (CIKM) · doi:10.1145/2505515.2508210 · Cited by 46
Data Diff: Interpretable, Executable Summaries of Changes in Distributions for Data Wrangling
Sutton, C., Hobson, T., Geddes, J., & Caruana, R. (2018) · Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining · doi:10.1145/3219819.3220057 · Cited by 42
Self-citationFrom dirt to shovels: fully automatic tool generation from ad hoc data
Fisher, K. S., Walker, D., Zhu, K. Q., & White, P. (2008) · ACM SIGPLAN Notices · doi:10.1145/1328897.1328488 · Cited by 38
Metadata Vocabulary for Tabular Data
Pollock, R., Tennison, J., Kellogg, G., & Herman, I. (2015) · Centrum Wiskunde & Informatica (CWI), the national research institute for mathematics and computer science in the Netherlands · Cited by 35
Döhmen, T., Mühleisen, H., & Boncz, P. A. (2017) · International Conference on Scientific and Statistical Database Management · doi:10.1145/3085504.3085520 · Cited by 27
Contribute, O. C. A. I. W. T. (2017) · Cited by 13
Research works printed but not linked: 1
- Catastrophe Theory. V I Arnold, 2003Springer Science & Business Media
Cited by
An artificial intelligence model for heart disease detection using machine learning algorithms
Chang, V., Bhavani, V. R., Xu, A. Q., & Hossain, M. (2022) · Healthcare Analytics · doi:10.1016/j.health.2022.100016 · Cited by 318
Table-GPT: Table Fine-tuned GPT for Diverse Table Tasks
Li, P., He, Y., Yashar, D., Cui, W., Song, G., Zhang, H., Fainman, D. R., Zhang, D., & Chaudhuri, S. (2024) · Proceedings of the ACM on Management of Data · doi:10.1145/3654979 · Cited by 283
GitTables: A Large-Scale Corpus of Relational Tables
Hulsebos, M., Demiralp, Ç., & Groth, P. (2023) · Proceedings of the ACM on Management of Data · doi:10.1145/3588710 · Cited by 129
Table understanding approaches for extracting knowledge from heterogeneous tables
Bonfitto, S., Casiraghi, E., & Mesiti, M. (2021) · Wiley Interdisciplinary Reviews Data Mining and Knowledge Discovery · doi:10.1002/widm.1407 · Cited by 42
Pytheas: pattern-based table discovery in CSV files
Christodoulakis, C., Munson, E. B., Gabel, M., Brown, A. D., & Miller, R. J. (2020) · Proceedings of the VLDB Endowment · doi:10.14778/3407790.3407810 · Cited by 42
Metadata
- Authors
- van den Burg, G. J. J., Nazábal, A., & Sutton, C.
- Affiliations
- The Alan Turing Institute (GB)
- Google (United States) (US)
- Corresponding author
- van den Burg, G. J. J.
- Venue
- Data Mining and Knowledge Discovery
- Published
- 2019-07-26
- Volume
- 33
- Issue
- 6
- Pages
- 1799-1820
- ISSN
- 1384-5810 (ISSN-L)
- 1573-756X
- OpenAlex
- W2902696364
- Cited by
- 42
- References
- 25
- Citations by year
- 2026: 7 · 2025: 12 · 2024: 6 · 2023: 9 · 2022: 3 · 2021: 1 · 2020: 4
- FWCI
- 1.36
- Type
- journal article
- Language
- en
- Open access
- green
- arxiv.org
- Licence
- www.springer.com/tdm (tdm)
- www.springer.com/tdm (vor)
- Locations
- Data Mining and Knowledge Discovery (publishedVersion)
- arXiv (Cornell University) (submittedVersion)
- arXiv (Cornell University)
- Funders
- UK Government’s Defense & Security Programme
- Topics
- Physical Sciences › Computer Science › Information Systems › Data Quality and Management
- Physical Sciences › Computer Science › Artificial Intelligence › Machine Learning and Data Classification
- Physical Sciences › Computer Science › Information Systems › Web Data Mining and Analysis
- Keywords
- CSV files, data parsing, data preparation, data loading
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.