Wrangling Messy CSV Files by Detecting Row and Type Patterns
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...
Saved in:
| Published in | arXiv.org |
|---|---|
| Main Authors | , , |
| Format | Paper Journal Article |
| Language | English |
| Published |
Ithaca
Cornell University Library, arXiv.org
27.11.2018
|
| Subjects | |
| Online Access | Get full text |
| ISSN | 2331-8422 |
| DOI | 10.48550/arxiv.1811.11242 |
Cover
| Abstract | 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. |
|---|---|
| AbstractList | Data Mining and Knowledge Discovery (July, 2019) 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. 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. |
| Author | Sutton, Charles Gerrit J J van den Burg Nazabal, Alfredo |
| Author_xml | – sequence: 1 fullname: Gerrit J J van den Burg – sequence: 2 givenname: Alfredo surname: Nazabal fullname: Nazabal, Alfredo – sequence: 3 givenname: Charles surname: Sutton fullname: Sutton, Charles |
| BackLink | https://doi.org/10.1007/s10618-019-00646-y$$DView published paper (Access to full text may be restricted) https://doi.org/10.48550/arXiv.1811.11242$$DView paper in arXiv |
| BookMark | eNotj11LwzAYhYMoOOd-gFcGvG5N3nzYgDcynQoTRYteljRJR0dNa9Kp_fd2m1fn4jwcznOCDn3rHUJnlKQ8E4Jc6vBbf6c0ozSlFDgcoAkwRpOMAxyjWYxrQgjIKxCCTdD1R9B-1dR-hZ9cjAOev73jRd24iMsB37remX5bvrY_WHuL86Fz-EX3vQs-nqKjSjfRzf5zivLFXT5_SJbP94_zm2WiBYhEMq6JsRVnpFQ6E4oqJ0vOsxK4ZbzS0hgNihvpqARbuZIIWlWKgjVWMcmm6Hw_u1MrulB_6jAUW8VipzgSF3uiC-3XxsW-WLeb4MdPBVCmWCbFaPsHoBdUOw |
| ContentType | Paper Journal Article |
| Copyright | 2018. This work is published under http://arxiv.org/licenses/nonexclusive-distrib/1.0/ (the “License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License. http://arxiv.org/licenses/nonexclusive-distrib/1.0 |
| Copyright_xml | – notice: 2018. This work is published under http://arxiv.org/licenses/nonexclusive-distrib/1.0/ (the “License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License. – notice: http://arxiv.org/licenses/nonexclusive-distrib/1.0 |
| DBID | 8FE 8FG ABJCF ABUWG AFKRA AZQEC BENPR BGLVJ CCPQU DWQXO HCIFZ L6V M7S PHGZM PHGZT PIMPY PKEHL PQEST PQGLB PQQKQ PQUKI PRINS PTHSS AKY GOX |
| DOI | 10.48550/arxiv.1811.11242 |
| DatabaseName | ProQuest SciTech Collection ProQuest Technology Collection Materials Science & Engineering Collection ProQuest Central (Alumni) ProQuest Central UK/Ireland ProQuest Central Essentials ProQuest Central Technology Collection (ProQuest) ProQuest One Community College ProQuest Central Korea SciTech Premium Collection ProQuest Engineering Collection Engineering Database ProQuest Central Premium ProQuest One Academic Publicly Available Content Database ProQuest One Academic Middle East (New) ProQuest One Academic Eastern Edition (DO NOT USE) ProQuest One Applied & Life Sciences ProQuest One Academic ProQuest One Academic UKI Edition ProQuest Central China Engineering Collection arXiv Computer Science arXiv.org |
| DatabaseTitle | Publicly Available Content Database Engineering Database Technology Collection ProQuest One Academic Middle East (New) ProQuest Central Essentials ProQuest One Academic Eastern Edition ProQuest Central (Alumni Edition) SciTech Premium Collection ProQuest One Community College ProQuest Technology Collection ProQuest SciTech Collection ProQuest Central China ProQuest Central ProQuest One Applied & Life Sciences ProQuest Engineering Collection ProQuest One Academic UKI Edition ProQuest Central Korea Materials Science & Engineering Collection ProQuest Central (New) ProQuest One Academic ProQuest One Academic (New) Engineering Collection |
| DatabaseTitleList | Publicly Available Content Database |
| Database_xml | – sequence: 1 dbid: GOX name: arXiv.org url: http://arxiv.org/find sourceTypes: Open Access Repository – sequence: 2 dbid: 8FG name: ProQuest Technology Collection url: https://search.proquest.com/technologycollection1 sourceTypes: Aggregation Database |
| DeliveryMethod | fulltext_linktorsrc |
| Discipline | Physics |
| EISSN | 2331-8422 |
| ExternalDocumentID | 1811_11242 |
| Genre | Working Paper/Pre-Print |
| GroupedDBID | 8FE 8FG ABJCF ABUWG AFKRA ALMA_UNASSIGNED_HOLDINGS AZQEC BENPR BGLVJ CCPQU DWQXO FRJ HCIFZ L6V M7S M~E PHGZM PHGZT PIMPY PKEHL PQEST PQGLB PQQKQ PQUKI PRINS PTHSS AKY GOX |
| ID | FETCH-LOGICAL-a525-634a0cdf430b9a85919e6b448b24d34fa6cca294c6e162dfeb051ff912dcd9363 |
| IEDL.DBID | GOX |
| IngestDate | Tue Jul 22 22:01:11 EDT 2025 Mon Jun 30 09:13:28 EDT 2025 |
| IsDoiOpenAccess | true |
| IsOpenAccess | true |
| IsPeerReviewed | false |
| IsScholarly | false |
| Language | English |
| LinkModel | DirectLink |
| MergedId | FETCHMERGED-LOGICAL-a525-634a0cdf430b9a85919e6b448b24d34fa6cca294c6e162dfeb051ff912dcd9363 |
| Notes | SourceType-Working Papers-1 ObjectType-Working Paper/Pre-Print-1 content type line 50 |
| OpenAccessLink | https://arxiv.org/abs/1811.11242 |
| PQID | 2139386555 |
| PQPubID | 2050157 |
| ParticipantIDs | arxiv_primary_1811_11242 proquest_journals_2139386555 |
| PublicationCentury | 2000 |
| PublicationDate | 20181127 2018-11-27 |
| PublicationDateYYYYMMDD | 2018-11-27 |
| PublicationDate_xml | – month: 11 year: 2018 text: 20181127 day: 27 |
| PublicationDecade | 2010 |
| PublicationPlace | Ithaca |
| PublicationPlace_xml | – name: Ithaca |
| PublicationTitle | arXiv.org |
| PublicationYear | 2018 |
| Publisher | Cornell University Library, arXiv.org |
| Publisher_xml | – name: Cornell University Library, arXiv.org |
| SSID | ssj0002672553 |
| Score | 1.6751335 |
| SecondaryResourceType | preprint |
| Snippet | 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... Data Mining and Knowledge Discovery (July, 2019) It is well known that data scientists spend the majority of their time on preparing data for analysis. One of... |
| SourceID | arxiv proquest |
| SourceType | Open Access Repository Aggregation Database |
| SubjectTerms | Computer Science - Databases Format Human wastes Inspection Tables (data) |
| SummonAdditionalLinks | – databaseName: ProQuest Technology Collection dbid: 8FG link: http://utb.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwfV1LS8NAEF60RfDmk1ar7MFrbLLZbLMgeKjGIihFq_YW9hXxkj5SH_33zmxTPQhesxDIl935ZufxDSFn3ITGgacbKGHigPNCBcqmHIWQgZytlXpV5XsvBk_8dpyM64BbVZdVrm2iN9R2YjBG3mXgquB8yiS5nM4CnBqF2dV6hMYmaQJRS9zVaXbzE2Nhogcec7xKZnrprq6af719nAOtRdg8gwPam_7RH1Ps-SXbIc2hmrr5Ltlw5R7Z8mWZptonFy9AJa_YMU7vwCQtaf_xmWZwkCuql_TKYQYAFx8mn1SVluKtkg69ZGZZHZBRdj3qD4J63kGgEpYEIuYqNLbgcailQl056YSG65Nm3MaAogC0meRGuEgwWziAMSoKGTFrrIxFfEga5aR0LUJ7PAkNMK-RacgLrbW0CbwezmuhwGfgbdLyX51PV5IWOQKSe0DapLMGIq-3c5X_gn_0__Ix2QaPIsVmPdbrkMZi_u5OgLUX-tT_mm-16JTJ priority: 102 providerName: ProQuest |
| Title | Wrangling Messy CSV Files by Detecting Row and Type Patterns |
| URI | https://www.proquest.com/docview/2139386555 https://arxiv.org/abs/1811.11242 |
| hasFullText | 1 |
| inHoldings | 1 |
| isFullTextHit | |
| isPrint | |
| link | http://utb.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwdV09T8MwED21ZWFBIEAtlMoDa0TiOG4ssUBpqJBaqlKgW-SvIJYUNeWjC7-dc5KKAbFkcOxIeY7vvUtyzwDnTPvaotL1JNehx1gmPWli5oyQkZyNEar6y3fCR4_sbhEtGkC2tTBy9fX6UfkDq-IC6SdwRS4Mg2wThYIr5r1fVB8nSyuuuv9vP9SYZdOf0FryRbIPe7XQI1fVzBxAw-aHcPmM1PDiKsDJGEPMhgwenkiCC7MgakNurHuj707Olp8EU3ziskQyLS0w8-II5slwPhh59f4Fnoxo5PGQSV-bjIW-EtL5xAnLFaZDijITIioc0aOCaW4DTk1mEZYgy0RAjTYi5OExtPJlbttA-izyNTKpFrHPMqWUMBFeHtdfJlEDsA60y7tO3yqLitQBkpaAdKC7BSKtH88ipaj73GafUXTy_8hT2EV1ELvCO9rvQmu9erdnyMBr1YNmnNz2YOd6OJnOeuWk4HH8PfwBal6HtQ |
| linkProvider | Cornell University |
| linkToHtml | http://utb.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwtV3JTsMwEB0VKgQ3VlFWH-AYSB3HrSUQEpSqZakqKMst8hbEJS0NWz-Of2PspnBA4tZrLFn2jDPvjT0LwB7TobbIdAPJdRQwlspAmjpzhZARnI0Rahzl2-GtO3bxGD-W4GuSC-PCKic20Rtq09fujvyQIlVx_Snj-GTwEriuUe51ddJCQxatFcyxLzFWJHZc2tEHunD5cbuB-t6ntHneO2sFRZeBQMY0DnjEZKhNyqJQCemquQnLFTotijIT4do57pEKprmtcmpSi4uvpqmoUqONiHiE085AmUVMoO9XPj3vdG9-LnkoryFlj8avqb522KEcfj6_HyCuVl32jusQX_af_mCBB7jmIpS7cmCHS1Cy2TLM-bhQna_A0QNi2ZNLWSfXaBNH5Oz2njTRkuREjUjDuicIN3jT_yAyM8S5taTra3Zm-Sr0piGKNZjN-pldB1JjcagR-rWohyxVSgkT4_RoMFKJpIVVYN3vOhmMa2okTiCJF0gFtiaCSIr_KU9-tb_x__AuzLd611fJVbtzuQkLSG_qLnOQ1rZg9nX4ZreRQryqnUJRBJIpH41vJRzX3A |
| openUrl | ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rfr_id=info%3Asid%2Fsummon.serialssolutions.com&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.atitle=Wrangling+Messy+CSV+Files+by+Detecting+Row+and+Type+Patterns&rft.jtitle=arXiv.org&rft.au=Gerrit+J+J+van+den+Burg&rft.au=Nazabal%2C+Alfredo&rft.au=Sutton%2C+Charles&rft.date=2018-11-27&rft.pub=Cornell+University+Library%2C+arXiv.org&rft.eissn=2331-8422&rft_id=info:doi/10.48550%2Farxiv.1811.11242 |