Skip to content

Clean up obsolete PANDAS_GE markers#12279

Merged
jacobtomlinson merged 1 commit intodask:mainfrom
crusaderky:pandas_ge
Mar 3, 2026
Merged

Clean up obsolete PANDAS_GE markers#12279
jacobtomlinson merged 1 commit intodask:mainfrom
crusaderky:pandas_ge

Conversation

@crusaderky
Copy link
Copy Markdown
Collaborator

@crusaderky crusaderky commented Feb 5, 2026

  • Remove unused markers PANDAS_GE_201 and PANDAS_GE_211
  • Clean up duplicated marker PANDAS_GE_300
  • Suppress warnings on test_groupby_transform_funcs in pandas >=2.1,<3.0

Comment on lines +2256 to +2260
# These warnings appear only on pandas >=2.1,<3.0
@pytest.mark.filterwarnings(r"ignore:.*(DataFrame|Series)GroupBy\.sum:FutureWarning")
@pytest.mark.filterwarnings(r"ignore:.*DataFrame\.sum with axis=None:FutureWarning")
@pytest.mark.filterwarnings(r"ignore:.*DataFrameGroupBy\.apply:DeprecationWarning")
@pytest.mark.filterwarnings(r"ignore:.*DataFrameGroupBy\.apply:FutureWarning")
Copy link
Copy Markdown
Collaborator Author

@crusaderky crusaderky Feb 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My first intuition was that this may indicate that, somewhere in the codebase, there may be a conditional code path that incorrectly uses PANDAS_GE_300 instead of PANDAS_GE_210. However, I could not find it.



@contextlib.contextmanager
def check_reductions_runtime_warning():
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 5, 2026

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

     21 files  ±0       21 suites  ±0   5h 34m 55s ⏱️ + 6m 4s
 18 284 tests ±0   17 010 ✅ ±0   1 274 💤 ±0  0 ❌ ±0 
317 223 runs  ±0  273 482 ✅ ±0  43 741 💤 ±0  0 ❌ ±0 

Results for commit 4d75652. ± Comparison against base commit 45610ac.

♻️ This comment has been updated with latest results.

@crusaderky
Copy link
Copy Markdown
Collaborator Author

Test failure is unrelated (#12225).

@crusaderky
Copy link
Copy Markdown
Collaborator Author

@jsignell Would you have time to review this?

@crusaderky crusaderky requested a review from jsignell March 2, 2026 11:55
@jacobtomlinson
Copy link
Copy Markdown
Member

If not maybe @TomAugspurger

Copy link
Copy Markdown
Member

@jsignell jsignell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems fine to me! I do think if you are following NEP 29 you can drop any pandas versions less than Pandas 2.2.1

@jacobtomlinson jacobtomlinson merged commit ac02b7d into dask:main Mar 3, 2026
29 checks passed
@crusaderky
Copy link
Copy Markdown
Collaborator Author

This seems fine to me! I do think if you are following NEP 29 you can drop any pandas versions less than Pandas 2.2.1

Is Dask following NEP29 / SPEC0 though? I didn't think it did.

@crusaderky crusaderky deleted the pandas_ge branch March 4, 2026 10:12
@jacobtomlinson
Copy link
Copy Markdown
Member

Is Dask following NEP29 / SPEC0 though?

We don't proactively follow them, but we can use them to justify dropping older versions whenever there is a maintenance benefit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants