Skip to content

Commit c6c23ac

Browse files
committed
ENH: Add UserWarning when plotting bar plot with MultiIndex
1 parent 6c64cc1 commit c6c23ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/plotting/_matplotlib/core.py

+3
Original file line numberDiff line numberDiff line change
@@ -1319,6 +1319,9 @@ def __init__(self, data, **kwargs):
13191319

13201320
if isinstance(self.data.index, ABCMultiIndex):
13211321
# No real handling for MultiIndex yet
1322+
warnings.warn(
1323+
"Bar plot with a MultiIndex is not supported.", UserWarning,
1324+
)
13221325
self.ax_index = np.arange(len(data))
13231326
else:
13241327
self.ax_index = self.data.index

0 commit comments

Comments
 (0)