You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to support Pandas 2.1, pytest frames_test.py::GroupByTest::test_groupby_level_agg_3
fails with
EAssertionError: Expressiondoesnotpreservepartitioning!
EExpression: ComputedExpression[pre_combine_max_Series_139900651301776]
ERequires: ArbitraryEPreserves: ArbitraryEInputpartitioning: IndexEExpectedoutputpartitioning: Index
Also, 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 change test_groupby_level_agg_6 from [1, 'str'] to ['str', 1] it still fails, so it isn't a clearcut answer there.
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: pandas-dev/pandas#55379
What happened?
When trying to support Pandas 2.1,
pytest frames_test.py::GroupByTest::test_groupby_level_agg_3
fails with
Also,
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
The text was updated successfully, but these errors were encountered: