We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb03ef0 commit 8e55d3aCopy full SHA for 8e55d3a
flox/core.py
@@ -1616,10 +1616,13 @@ def _convert_expected_groups_to_index(
1616
out: list[T_ExpectIndexOpt] = []
1617
for ex, isbin_ in zip(expected_groups, isbin):
1618
if isinstance(ex, pd.IntervalIndex) or (isinstance(ex, pd.Index) and not isbin_):
1619
- e = ex
1620
if sort:
1621
- e = e.sort_values()
1622
- out.append(e)
+ ex = ex.sort_values()
+ out.append(ex)
+ # e = ex
1623
+ # if sort:
1624
+ # e = e.sort_values()
1625
+ # out.append(e)
1626
elif ex is not None:
1627
if isbin_:
1628
out.append(pd.IntervalIndex.from_breaks(ex)) # type: ignore [arg-type] # TODO: what do we want here?
0 commit comments