diff --git a/hvplot/tests/testcharts.py b/hvplot/tests/testcharts.py index 2fddea515..b821a17e7 100644 --- a/hvplot/tests/testcharts.py +++ b/hvplot/tests/testcharts.py @@ -1,4 +1,5 @@ import numpy as np +import pytest from unittest import SkipTest, expectedFailure from parameterized import parameterized @@ -463,6 +464,19 @@ def test_multi_index_groupby_from_index(self): assert hmap.last.kdims == ['A'] assert hmap.last.vdims == ['C'] + @pytest.mark.xfail(reason='See https://github.com/holoviz/hvplot/issues/1364') + def test_hierarchical_columns_auto_stack(self): + import pandas as pd + + arrays = [ + ['bar', 'bar', 'baz', 'baz', 'foo', 'foo', 'qux', 'qux'], + ['one', 'two', 'one', 'two', 'one', 'two', 'one', 'two'], + ] + tuples = list(zip(*arrays)) + index = pd.MultiIndex.from_tuples(tuples) + df = pd.DataFrame(np.random.randn(3, 8), index=['A', 'B', 'C'], columns=index) + df.hvplot.scatter() + class TestChart1DDask(TestChart1D): def setUp(self):