beam icon indicating copy to clipboard operation
beam copied to clipboard

GroupBy.describe generates an incorrect proxy

Open damccorm opened this issue 4 years ago • 1 comments

Root cause is https://github.com/pandas-dev/pandas/issues/41575

In the Series groupby case proxy generation raises an error. In the DataFrame case it produces a Series, when it should produce a DataFrame with the expected columns.

Imported from Jira BEAM-12366. Original Jira may contain additional context. Reported by: bhulette.

damccorm avatar Jun 04 '22 20:06 damccorm

.take-issue

On pandas 2.2/2.3 the proxy no longer raises, but its index loses the group-key names, so for example to_pcollection(df.groupby(['c', 'd']).a.describe()[['count', 'mean']], include_indexes=True) raises "Encountered an unnamed index".

sohailshk avatar Nov 13 '26 16:11 sohailshk