AI & Machine Learning

I wasted 200+ hours parsing client CSVs. So I built a library that does it in one line.

Ali NematiAli Nemati16 hours ago32 sec read2 views

csvmedic is a Python library designed to read messy CSV files and convert them into clean pandas DataFrames with correct data types. It handles encoding detection, delimiter identification, and type inference for columns, ensuring that leading zeros in numbers are preserved as strings when necessary. The tool includes features like schema pinning for recurring file formats and batch reading with consensus mode for consistent processing across multiple files.(csvmedic) is released under the MIT license and relies on pandas and charset-normalizer as dependencies.

Read the full article at DEV Community


Want to create content about this topic? Use Nemati AI tools to generate articles, social posts, and more.

2
Comments
Ali Nemati
Ali NematiWritten by Ali
View all posts

Related Articles