Pound sign problem

David Shi davidgshi at yahoo.co.uk
Mon Apr 10 09:17:16 EDT 2017


In the data set, pound sign escape appears:
u'price_currency': u'\xa3', u'price_formatted': u'\xa3525,000',
When using table.to_csv after importing pandas as pd, an error message persists as follows:
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa3' in position 0: ordinal not in range(128)

Can anyone help?
Regards.
David


More information about the Python-list mailing list