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 main branch of pandas.
df = DataFrame({'a': [1, 1, 1], 'b': 2, 'c': 3, 'd': 4, 'e': 5}) gb = df.groupby([0, 0, 0, 1, 1], axis=1) print(df) print() print(gb.size())Issue Description
I can't imagine this being a useful op, but we still shouldn't have wrong results.
a b c d e
0 1 2 3 4 5
1 1 2 3 4 5
2 1 2 3 4 5
0 3
1 2
Expected Behavior Installed Versions
Replace this line with the output of pd.show_versions()
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4