Skip to content

Commit cedf7b1

Browse files
committed
Hardcode default categorical behavior. See #35967
1 parent 114d2f9 commit cedf7b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/plotting/_matplotlib/boxplot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def _grouped_plot_by_column(
195195
return_type=None,
196196
**kwargs,
197197
):
198-
grouped = data.groupby(by)
198+
grouped = data.groupby(by, observed=False)
199199
if columns is None:
200200
if not isinstance(by, (list, tuple)):
201201
by = [by]

0 commit comments

Comments
 (0)