-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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: DataFrame/Series.transform with list and non-list dict values #40018
Comments
In which version are you getting this? I am running them on `--------------------------------------------------------------------------- /opt/conda/lib/python3.8/site-packages/pandas/core/series.py in transform(self, func, axis, *args, **kwargs) /opt/conda/lib/python3.8/site-packages/pandas/core/generic.py in transform(self, func, *args, **kwargs)
/opt/conda/lib/python3.8/site-packages/pandas/core/series.py in aggregate(self, func, axis, *args, **kwargs) /opt/conda/lib/python3.8/site-packages/pandas/core/base.py in _aggregate(self, arg, *args, **kwargs) SpecificationError: nested renamer is not supported |
Thanks @smohr003! I've verified your reported behavior on 1.1.x and that the code matches my reported behavior on 1.2.x (and master). The first output I would classify as a regression, but the 2nd behavior (using on a Series) is the correct one. That is, passing a dictionary to Series.transform should not raise. |
from #40090 (comment)
first bad commit: [ab5b38d] BUG/CLN: Decouple Series/DataFrame.transform (#35964) |
produces
In each case the last column label on the 2nd level should be "sqrt" and not "a" or "c".
The text was updated successfully, but these errors were encountered: