Skip to content

Commit 8e55d3a

Browse files
committed
test ex instead of e
1 parent fb03ef0 commit 8e55d3a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

flox/core.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1616,10 +1616,13 @@ def _convert_expected_groups_to_index(
16161616
out: list[T_ExpectIndexOpt] = []
16171617
for ex, isbin_ in zip(expected_groups, isbin):
16181618
if isinstance(ex, pd.IntervalIndex) or (isinstance(ex, pd.Index) and not isbin_):
1619-
e = ex
16201619
if sort:
1621-
e = e.sort_values()
1622-
out.append(e)
1620+
ex = ex.sort_values()
1621+
out.append(ex)
1622+
# e = ex
1623+
# if sort:
1624+
# e = e.sort_values()
1625+
# out.append(e)
16231626
elif ex is not None:
16241627
if isbin_:
16251628
out.append(pd.IntervalIndex.from_breaks(ex)) # type: ignore [arg-type] # TODO: what do we want here?

0 commit comments

Comments
 (0)