Skip to content

test_to_csv_unicode fails on python 3.1, 3.2 windows #738

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
adamklein opened this issue Feb 2, 2012 · 0 comments
Closed

test_to_csv_unicode fails on python 3.1, 3.2 windows #738

adamklein opened this issue Feb 2, 2012 · 0 comments
Assignees
Labels
Milestone

Comments

@adamklein
Copy link
Contributor

ERROR: test_to_csv_unicode (pandas.tests.test_frame.TestDataFrame)

Traceback (most recent call last):
File "c:\python32\lib\site-packages\pandas-0.7.0.dev-py3.2-win-amd64.egg\panda
s\tests\test_frame.py", line 2488, in test_to_csv_unicode
df.to_csv(path, encoding='UTF-8')
File "c:\python32\lib\site-packages\pandas-0.7.0.dev-py3.2-win-amd64.egg\panda
s\core\frame.py", line 914, in to_csv
csvout.writerow(encoded_labels + encoded_cols)
File "c:\python32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u03c3' in position
8: character maps to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants