Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
sort_index throws IndexError for some permutations #26053
df = pd.DataFrame(list(range(8))) a.index = pd.MultiIndex.from_product([[0,1]]*3) a.sort_index(level=[1,2,0])
This throws an
OK thanks for clarifying. The both seem to fail:
May or may not be related to issue - in any case investigation and PRs are always welcome!