Skip to content

TST: groupby boxplot honors column selection (GH#41124)#66021

Merged
jbrockmendel merged 1 commit into
pandas-dev:mainfrom
jbrockmendel:bug-41124
Jun 26, 2026
Merged

TST: groupby boxplot honors column selection (GH#41124)#66021
jbrockmendel merged 1 commit into
pandas-dev:mainfrom
jbrockmendel:bug-41124

Conversation

@jbrockmendel

Copy link
Copy Markdown
Member

closes #41124

DataFrameGroupBy.boxplot() ignored a gb[["col"]] column selection and plotted every column. This was fixed in 1.4.0 by GH-44947 (GH-44821), which made GroupBy.__iter__ iterate over _selected_obj. Add a regression test covering both subplots=True and subplots=False.

closes pandas-dev#41124

DataFrameGroupBy.boxplot() ignored a `gb[["col"]]` column selection and
plotted every column. This was fixed in 1.4.0 by pandas-devGH-44947 (pandas-devGH-44821),
which made GroupBy.__iter__ iterate over _selected_obj. Add a regression
test covering both subplots=True and subplots=False.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jbrockmendel jbrockmendel added Testing pandas testing functions or related to the test suite Groupby Visualization plotting labels Jun 25, 2026
@jbrockmendel jbrockmendel marked this pull request as ready for review June 26, 2026 16:27
@jbrockmendel jbrockmendel merged commit 11eadd2 into pandas-dev:main Jun 26, 2026
60 of 61 checks passed
@jbrockmendel jbrockmendel deleted the bug-41124 branch June 26, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Groupby Testing pandas testing functions or related to the test suite Visualization plotting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: DataFrameGroupBy.boxplot() ignores selection of variables

1 participant