We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e209a35 commit 97490e7Copy full SHA for 97490e7
pandas/plotting/_matplotlib/boxplot.py
@@ -214,7 +214,7 @@ def _make_plot(self, fig: Figure) -> None:
214
# values, instead of label which is used as subtitle in this case.
215
# error: "Index" has no attribute "levels"; maybe "nlevels"?
216
levels = self.data.columns.levels # type: ignore[attr-defined]
217
- ticklabels = [pprint_thing(col) for col in levels[0]]
+ ticklabels = [pprint_thing(col) for col in self.data.columns.get_level_values(0)] #
218
else:
219
ticklabels = [pprint_thing(label)]
220
0 commit comments