Open caneff opened 11 months ago
R: @tvalentyn
cc: @robertwb who might have ideas.
Chased this down and found the underlying pandas issue is that df.sort_index()
isn't actually sorting under some arcane circumstances that aren't clear to me yet. Issue here: https://github.com/pandas-dev/pandas/issues/55379
What happened?
When trying to support Pandas 2.1,
pytest frames_test.py::GroupByTest::test_groupby_level_agg_3
fails withAlso,
test_groupby_level_agg_6
fails the same way.Note if I change
test_groupby_level_agg_3
in the parameterized setup to be[3,0]
instead of[0, 3]
(so the categorical is first instead of last) it doesn't fail, but if I changetest_groupby_level_agg_6
from[1, 'str']
to['str', 1]
it still fails, so it isn't a clearcut answer there.I suspect this and #28637 are intertwined.
Issue Priority
Priority: 2 (default / most bugs should be filed as P2)
Issue Components