Skip to content
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

Series/DataFrame repr fails for MultiIndex level names with unicode #1736

Closed
lodagro opened this issue Aug 6, 2012 · 0 comments

Comments

@lodagro
Copy link
Contributor

commented Aug 6, 2012

In [34]: tuples = [t for t in product(range(2), range(2))]

In [35]: index = pandas.MultiIndex.from_tuples(tuples, names=[u'\u0394', 'i1'])

In [36]: df = pandas.DataFrame(np.random.randn(4,4), index=index)

In [37]: s = pandas.Series(range(4), index=index)

In[38]: df
...
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0394' in position 0: ordinal not in range(128)

In[38]: s
...
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0394' in position 0: ordinal not in range(128)

@wesm wesm closed this in 1dd2c4f Aug 12, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.