Skip to content

Commit

Permalink
add xfail test for hierarchical columns DataFrames
Browse files Browse the repository at this point in the history
  • Loading branch information
maximlt committed Jul 2, 2024
1 parent d342080 commit 1896d7b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions hvplot/tests/testcharts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import numpy as np
import pytest

from unittest import SkipTest, expectedFailure
from parameterized import parameterized
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 1896d7b

Please sign in to comment.