quote_csv module

This script takes a csv file and adds double quotes to each value.

Input:

  • -i : CSV file to quote

Output:

  • -o : path and file name of the quoted CSV file

Usage:

  • python quote_csv.py -h

*Gives a description of the commands -i and -o

  • python quote_csv.py -i <path/input_filename.csv> -o <path/output_filename.csv>

*Runs the script with the given input and output

quote_csv.main(csv_file, output_file)

Loads CSV file into pandas dataframe, adds quotes, then writes output CSV file