Allow setting quoting by joystein · Pull Request #1902 · pandas-dev/pandas (original) (raw)

Allow setting the quoting type for to_csv. Adds "qouting" argument to the to_csv method of DataFrame and pass this on to the csv.writer. Can then use the defaults from the standard library to set the desired type of quoting, like so:

import csv
...
dataframe.to_csv(filepath, quoting=csv.QUOTE_NONNUMERIC)
...