Skip to content

DataFrame with high ascii cannot be displayed in IPython (regression from 0.6.1) #777

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
davidbrai opened this issue Feb 13, 2012 · 1 comment
Labels
Milestone

Comments

@davidbrai
Copy link

edit: This happens on Windows 7 running IPython from cmd.

In pandas 0.6.1:
In [13]: pandas.version.version
Out[13]: '0.6.1'

In [14]: pandas.DataFrame(['\xc2'])
Out[14]:
0
0 ┬

In pandas 0.7.0:
In [2]: pandas.version.version
Out[2]: '0.7.0'

In [3]: pandas.DataFrame(['\xc2'])
.....
C:\Python26\lib\site-packages\pandas\core\common.pyc in _stringify(col)
503 def _stringify(col):
504 # unicode workaround

--> 505 return unicode(col)
506
507 def _maybe_make_list(obj):

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 0: ordinal not in range(128)

@adamklein
Copy link
Contributor

Confirmed in head revision on linux/ipython as well.

dan-nadler pushed a commit to dan-nadler/pandas that referenced this issue Sep 23, 2019
dan-nadler pushed a commit to dan-nadler/pandas that referenced this issue Sep 23, 2019
Fix pandas-dev#777: Handle zero columns when converting to unicode
dan-nadler pushed a commit to dan-nadler/pandas that referenced this issue Sep 23, 2019
dan-nadler pushed a commit to dan-nadler/pandas that referenced this issue Sep 23, 2019
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