-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
API: what should float(pd.NA) return? #48864
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
Just to clarify: The alternative would be to raise for |
Yeah that's what currently happens
Not sure what other considerations there are, I'll give this a go and see what happens |
This breaks pandas/pandas/tests/indexes/test_base.py Lines 855 to 862 in 1b2cc26
, though |
from the dev call: it's OK for |
From #32265, it seems there was broad agreement that pandas should do
Should
float(pd.NA)
then returnnp.nan
?xref matplotlib/matplotlib#23991 (comment)
The text was updated successfully, but these errors were encountered: