Small steps

--

Photo by Mika Baumeister on Unsplash

A Python3 script for fixing CSV files with “quoting” problems.

This tool is able to repair only a specific case: when one or more quotation marks exist inside a quotation marks surrounded field. These characters need to be escaped to be handled correctly by the CSV reader.

The fix applied consists on the doubling of each quotation mark found inside these fields.

You have to run it from command line, adding at least the CSV source file as parameter. A quick usage is printed with -h or without any parameter.

You can find the whole project on github.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Sergio Moretti
Sergio Moretti

Written by Sergio Moretti

0 Followers

Sergio Moretti is a full stack software engineer.

No responses yet

Write a response