-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
df.groupby(...).transform(func) breaks when func renames input df #23461
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
DiegoAlbertoTorres
pushed a commit
to DiegoAlbertoTorres/pandas
that referenced
this issue
Nov 2, 2018
4 tasks
DiegoAlbertoTorres
pushed a commit
to DiegoAlbertoTorres/pandas
that referenced
this issue
Nov 2, 2018
DiegoAlbertoTorres
pushed a commit
to DiegoAlbertoTorres/pandas
that referenced
this issue
Nov 5, 2018
DiegoAlbertoTorres
pushed a commit
to DiegoAlbertoTorres/pandas
that referenced
this issue
Nov 5, 2018
DiegoAlbertoTorres
pushed a commit
to DiegoAlbertoTorres/pandas
that referenced
this issue
Nov 5, 2018
DiegoAlbertoTorres
pushed a commit
to DiegoAlbertoTorres/pandas
that referenced
this issue
Nov 6, 2018
jreback
pushed a commit
that referenced
this issue
Nov 6, 2018
JustinZhengBC
pushed a commit
to JustinZhengBC/pandas
that referenced
this issue
Nov 14, 2018
tm9k1
pushed a commit
to tm9k1/pandas
that referenced
this issue
Nov 19, 2018
Pingviinituutti
pushed a commit
to Pingviinituutti/pandas
that referenced
this issue
Feb 28, 2019
Pingviinituutti
pushed a commit
to Pingviinituutti/pandas
that referenced
this issue
Feb 28, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Calling
df.groupby(...).transform(func)
breaks whenfunc
is capable of taking in apd.DataFrame
but renames its columns.Code sample
Problem description
The current behavior gives wrong results (with nan) for everything except the first group. This happens even when
func
can be called successfully with each column and not return any nans.This problem is present in master. I already have the fix: there is a bug in how results from the slow-path and the fast-path are joined in
df.groupby(...).transform(func)
. I will be putting up a PR very soon with the fix.The text was updated successfully, but these errors were encountered: