We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the master branch of pandas.
>>> df = pd.DataFrame({"A":[1,2,1,2]}) >>> df.groupby("A").apply(lambda x: x) A 0 1 1 2 2 1 3 2 >>> df.groupby("A").apply(lambda x: x.copy()) A A 1 0 1 2 1 2 1 2 3 2
I think both two cases should return a multi-index (just like the second case). Is this actually a bug? or just on purpose?
>>> df = pd.DataFrame({"A":[1,2,1,2]}) >>> df.groupby("A").apply(lambda x: x) A A 1 0 1 2 1 2 1 2 3 2
1.3.5
The text was updated successfully, but these errors were encountered:
It looks like a duplicate of 44803
Sorry, something went wrong.
sorry for duplication, close
No branches or pull requests
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the master branch of pandas.
Reproducible Example
Issue Description
I think both two cases should return a multi-index (just like the second case). Is this actually a bug? or just on purpose?
Expected Behavior
Installed Versions
1.3.5
The text was updated successfully, but these errors were encountered: