I have a dataframe in pandas which I would like to write to a CSV file. I am doing this using:
df.to_csv(\'out.csv\')
And getting the error
To delimit by a tab you can use the sep argument of to_csv:
sep
df.to_csv(file_name, sep='\t')
To use a specific encoding (e.g. 'utf-8') use the encoding argument:
encoding
df.to_csv(file_name, sep='\t', encoding='utf-8')