On 2017-05-31 17:52, David Shi via Python-list wrote:
How to make sure the result of Pandas.to_csv does not have non-ASCII code?

Specify the encoding as 'ascii':

    df.to_csv(path, encoding='ascii')

If there's a non-ASCII character that it can't write, it'll raise an exception.
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to