# to_csv¶

DataFrame.to_csv(fname, quotechar='"', sep=',', batch_size=0)[source]

Writes the underlying data into a newly created CSV file.

Args:
fname (str):

The name of the CSV file. The ending “.csv” and an optional batch number will be added automatically.

quotechar (str, optional):

The character used to wrap strings.

sep (str, optional):

The character used for separating fields.

batch_size(int, optional):

Maximum number of lines per file. Set to 0 to read the entire data frame into a single file.