preprint Open access

Detecting CSV File Dialects by Table Uniformity Measurement and Data Type Inference

  • Preprints.org
Research footprint

At a glance

Citations
1
References
13
Comments
0
Paper overview

Abstract

The human-readable simplicity with which the CSV format was devised, together with the absence of a standard that strictly defines this format, has allowed the proliferation of several variants in the dialects with which these files are written. The latter has meant that the exchange of information between data management systems, or between countries and regions, requires human intervention during the data mining and cleansing process. This has led to the development of various computational tools that aim to accurately determine the dialects of CSV files, in order to avoid data loss during data loading by a given system. However, current systems have limitations and make assumptions that need to be improved and/or extended. This paper proposes a method for determining CSV file dialects through table uniformity, a statistical approach based on table consistency and records dispersion measurement along with the detection of data type over each field. The new method has a 100% accuracy over a dataset with 147 sampling CSV files from a benchmark framework. Furthermore, the proposed method is accurate enough to determine dialects by reading only ten records, requiring more data to disambiguate those cases where the first records do not contain the necessary information to conclude with a dialect determination.

Record transparency

Publication details

DOI
10.20944/preprints202402.0858.v3
OpenAlex
W4391931897
Document type
preprint
Language
EN
Source
Preprints.org
Last metadata update
Community

Comments

Log in to join the discussion.

  1. No comments yet. Start the discussion.