-
-
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
bug when filling missing values with transform? #14274
Comments
yeh this is being hit as a fast transformer; the issue is that the function that is called (internally |
some groupby methods by-definition give a transformed output (e.g. they are not a reducer). So these shouldn't be allowed in e.g.
|
xref #9235 |
thanks jeff! although if I remember correctly you suggested me in another post to use |
here. #4095 but what worries me is that you are saying in this thread that |
|
ok got it... damn I need to make so many changes in my code... :(
such as otherwise use Is that correct? Thx |
@jreback - I think it may make sense to allow non-reducing transforms from strings? Right now it already works with the cythonized methods, e.g. this works
Just would need to catch the other "transforming" methods like |
@chris-b1 I agree and I also noticed |
OK @jreback @chris-b1 now I am confused
the first version with
Thanks! |
Are equivalent (first calls the second) and both take an optimized path. |
thanks @chris-b1 ! so yet another version of the same transformation :) is there a list somewhere of all the legit |
The output of transform now agrees with fillna on master. |
@rhshadrach I'm interested in helping out with other issues now that my feet are wet. Are you saying that the only thing needed to close this issue is a test that the |
@geoffrey-eisenbarth It appears so. I'd also recommend searching the groupby tests for fillna used in transform - perhaps one already exists and this issue wasn't known about. |
Looks like #24211 is the same issue and has a unit test so I think we are safe to close |
Hello there,
Consider this
Now I want to fill forward the missing values in
C
for each groupthe transform output is wrong.
Is that expected? Pandas 18.1
The text was updated successfully, but these errors were encountered: