Skip to content

Commit

Permalink
Add test case for pandas range index
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Feb 15, 2024
1 parent 8e51d8a commit 03af717
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions holoviews/tests/core/data/test_pandasinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@ def test_dataset_with_interface_column(self):
ds = Dataset(df)
self.assertEqual(list(ds.data.columns), ['interface'])

def test_dataset_range_with_object_index(self):
df = pd.DataFrame(range(4), columns=["values"], index=list("BADC"))
ds = Dataset(df, kdims='index')
assert ds.range('index') == ('A', 'D')


class PandasInterfaceTests(BasePandasInterfaceTests):

Expand Down

0 comments on commit 03af717

Please sign in to comment.