pandas 3.x compatibility for .groups#12071
Conversation
In pandas-dev/pandas@e191a06, pandas is setting up a change in behavior when grouping by a length-1 list and accessing `.groups`. This works around that warning by not using length-1 lists.
Unit Test ResultsSee test report for an extended history of previous test failures. This is useful for diagnosing flaky tests. 9 files ±0 9 suites ±0 3h 5m 39s ⏱️ - 7m 31s Results for commit f9112c2. ± Comparison against base commit 37835c4. ♻️ This comment has been updated with latest results. |
|
This fix appear to be OK, but there are a couple new failures: https://github.com/dask/dask/actions/runs/17585475622/job/49952187363?pr=12071#step:11:36267 I can address them here. |
|
That latest warning came from something like pd.Categorical([0, 0], categories=[])I changed it to use |
pandas 3.x is deprecating
.groupby(by=by).groupswhenby=is a length-1 list, so avoid that.Closes #12065