Skip to content

Commit f624b64

Browse files
committed
Avoid dtype=object in group plotting
1 parent 3ea783e commit f624b64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/plotting/_matplotlib/boxplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def plot_group(keys, values, ax: Axes, **kwds):
400400
ax.set_ylabel(pprint_thing(ylabel))
401401

402402
keys = [pprint_thing(x) for x in keys]
403-
values = [np.asarray(remove_na_arraylike(v), dtype=object) for v in values]
403+
values = [remove_na_arraylike(v) for v in values]
404404
bp = ax.boxplot(values, **kwds)
405405
if fontsize is not None:
406406
ax.tick_params(axis="both", labelsize=fontsize)

0 commit comments

Comments
 (0)