Skip to content

Commit

Permalink
test ex instead of e
Browse files Browse the repository at this point in the history
  • Loading branch information
Illviljan committed Jun 23, 2023
1 parent fb03ef0 commit 8e55d3a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions flox/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1616,10 +1616,13 @@ def _convert_expected_groups_to_index(
out: list[T_ExpectIndexOpt] = []
for ex, isbin_ in zip(expected_groups, isbin):
if isinstance(ex, pd.IntervalIndex) or (isinstance(ex, pd.Index) and not isbin_):
e = ex
if sort:
e = e.sort_values()
out.append(e)
ex = ex.sort_values()
out.append(ex)
# e = ex
# if sort:
# e = e.sort_values()
# out.append(e)
elif ex is not None:
if isbin_:
out.append(pd.IntervalIndex.from_breaks(ex)) # type: ignore [arg-type] # TODO: what do we want here?
Expand Down

0 comments on commit 8e55d3a

Please sign in to comment.