-
Notifications
You must be signed in to change notification settings - Fork 915
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
[BUG] df.index.name = "indexer"
does not work as expected under cudf.pandas
#14524
Comments
This is, approximately, because
I think what happens is that |
Yeah we might need a custom |
I'm confused, shouldn't the original object in this case already be a slow object? In which case |
There are two things at work:
A method call on the series will first attempt to copy slow-to-fast, fail, and then call the slow method and wrap up the result. The return value is in the slow state. But, the index can be fast, so when we call a method on the index that attempts a slow-to-fast copy, succeeds, and calls the fast method. The index object is now in the fast state. Now, the problem is that we modified the internal state of the return value of
|
Describe the bug
When setting the
name
attribute fordf.index
, the name of the index is supposed to update. When following the reproducer below, it doesn't work as expected.Steps/Code to reproduce bug
Expected behavior
No exception should be thrown from above.
Environment overview (please complete the following information)
Bare-metal, conda
The text was updated successfully, but these errors were encountered: