-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
groupby().apply(lambda x:x.copy()) raise error. #9946
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
I debuged this and found the different between
although
the |
you mentioned this in #9867 but we'll take this as a bug-report. Yes these should do the same. The entire point of the inference is to guess whether the user is mutating the input or not. IMHO this should be banned, but that ship has sailed. |
So this doesn't raise an error anymore on master, but you still get an inconsistent output:
|
close in favor of #14927? |
Yep |
raise
but
lambda x:x
orlambda x:x[:]
works.The text was updated successfully, but these errors were encountered: