Re: How to make sure the result of Pandas.to_csv does not have non-ASCII code?

2017-05-31 Thread MRAB
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

How to make sure the result of Pandas.to_csv does not have non-ASCII code?

2017-05-31 Thread David Shi via Python-list
How to make sure the result of Pandas.to_csv does not have non-ASCII code? Regards, David -- https://mail.python.org/mailman/listinfo/python-list