You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pd.set_option("display.max_columns", None)
df = DataFrame([[0, 1, 2, 3]])
df.columns = [0, 1, 2, 0]
gb = df.groupby(df[1])
print(gb.describe(percentiles=[]).to_string())
# 0 2
# count mean std min 50% max count mean std min 50% max count mean std min 50% max
# 1
# 1 1.0 0.0 NaN 0.0 0.0 0.0 1.0 3.0 NaN 3.0 3.0 3.0 1.0 2.0 NaN 2.0 2.0 2.0
With duplicate column names, describe only outputs the values for the first column. There should be two columns named 0 here. This issue occurs for any operation where the groupby code is using _selected_obj within the _group_selection_context.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
xref #46944
With duplicate column names, describe only outputs the values for the first column. There should be two columns named
0
here. This issue occurs for any operation where the groupby code is using_selected_obj
within the_group_selection_context
.The text was updated successfully, but these errors were encountered: