-
-
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
column-wise fillna with Series/dict NotImplemented #4514
Comments
this is pretty straightforward after merging in series subclass NDFrame. This has to deal with possible dtype changes when doing column wise (which I think its not-implemented) |
Came up again at SO |
@jreback @jorisvandenbossche is this implemented yet? I was trying to do this result.fillna(result.mean(axis=1), axis =1 ) and got the same exception |
issue is open |
my simple/crude workaround below. curious why this issue is still open in 2018. colnames = list(df) for colname in colnames: |
Because nobody made the effort to implement it. But you are welcome to do so. |
Faced the same issue. It is worth mentioning here, @hayd solution posted in StackOverflow Thanks for the workaround Andy! |
This isn't implemented even in the latest version of pandas (v2.0.1). Can we reopen this issue, please? |
To confirm, in my usage |
I see this is still an open issue take |
We actually used transpose (i.e.,
|
As per discussion on this SO question is NotImplementedError.
Solution/workaround is to transpose do transpose? This is used elsewhere in DataFrame.fillna method. just raise if inplace?
cc @cpcloud
The text was updated successfully, but these errors were encountered: