-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
Fix fillna accepting downcast as dict #40861
Conversation
by coincidence i've been looking at Block.downcast and found that in the 1D case all test cases have |
Could deprecate the downcast keyword? |
id be on board for this, no idea about others. |
thanks @phofl |
yeah +1 here as well. this was an artifact from a while back when this was expensive. we should always just downcast (as that is what we do everywhere else) |
Open an issue about this or directly a pr? |
probably merits an issue, since im not sure @jreback and i are on the same page. my immediate interest is in getting the downcast keyword out of Block.fillna (and ideally Block.interpolate), which i think is distinct from what he has in mind |
opened #40988 |
This fix makes sense in this case I think, but this does not fix the case for non-list like values, which raises a NotImplementedError
The docstring for Series.fillna says, that downcast may be a dict too, but I don't think that this makes sense, so we should maybe raise an error there?