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

DataFrame.loc[] loses index name #3880

joeb1415 opened this issue Jun 13, 2013 · 1 comment · Fixed by #3887


Copy link

commented Jun 13, 2013

In [1]: from pandas import DataFrame

In [2]: x = DataFrame([[1, 1], [1, 1]])

In [3]: = 'index_name'

In [4]: x.iloc[[0, 1]]
Out[4]: 'index_name'

In [5]: x.loc[[0, 1]]

In [6]: x.loc[[0, 1]] is None
Out[6]: True

This comment has been minimized.

Copy link

commented Jun 13, 2013

a bug....and a bit non-trivial to fix...will see if can get into 0.11.1

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