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
Not working set_index with drop #13649
Comments
thx, it looks to be a bug. if input is a works fine if we pass column name.
|
not a bug - this violates the guarantees of set_index it's not valid to pass an actual column here - its not the same as actually assigning the index |
there is a PR where try to make this work - but it's inherently ambiguous not even sure you could warn about this |
Could you elaborate what guarantee that is of set_index? I find it confusing if I specifically use |
when you pass a list for the keys, it is by-definition setting the index. However, one possibly could think that [58] is the actual result of [57].
|
any plans to fix this? |
Code Sample, a copy-pastable example if possible
Current output
Expected Output
output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: