Skip to content

Commit

Permalink
use index
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelizimm committed May 8, 2024
1 parent 7e55f5e commit b0c3fc5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,8 @@ def test_inspect_polars_series() -> None:
)
def test_get_children(data: Any, expected: Iterable) -> None:
children = get_inspector(data).get_children()
if hasattr(children, "to_list"):

if isinstance(children, pd.Index):
children = children.to_list()

assert children == expected
Expand Down

0 comments on commit b0c3fc5

Please sign in to comment.