-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TypeError: cannot do label indexing on <class 'pandas.core.indexes.base.Index'> with these indexers [nan] of <class 'float'> #32431
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
Comments
This works on master, what pandas version are you using? |
1.0.1 |
Facing the same problem Pandas 1.0.5. What code should I be providing?
|
This works in 1.1.0 |
@jbrockmendel i've labelled this as needs tests. Any idea which commit fixed this and whether additional tests are needed. |
I think that commit d4293f0 fixed this issue. But I'm not sure about how I find it. I took commits from |
Thanks @alexhtn I think #31962 may also have contributed to fixing the issue. (commit before this d206479 is the first fixed commit
no tests were added in #31962 and the test added in #31866 are for error checking so safe to say should add a test for the code sample in OP to close issue
~/test.py
and in shell
see #35685 |
take |
@callmekofi what version of pandas are you using? for me the example in the OP currently raises KeyError, which I think is correct |
Hello, now I have trouble getting null value count, help.
The text was updated successfully, but these errors were encountered: