Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecation warning about sort and split_out in groupby #10788

Merged
merged 1 commit into from Jan 12, 2024

Conversation

phofl
Copy link
Collaborator

@phofl phofl commented Jan 11, 2024

  • Closes #xxxx
  • Tests added / passed
  • Passes pre-commit run --all-files

this deprecation is counterintuitive for what we want to do in dask-expr to increase stability of computations on huge datasets, split_out should take precedence if sort is not given

Copy link
Contributor

Unit Test Results

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

     15 files  ±0       15 suites  ±0   3h 31m 23s ⏱️ + 6m 12s
 12 893 tests ±0   10 936 ✅ ±0     932 💤 ±0  1 025 ❌ ±0 
159 776 runs  ±0  142 166 ✅ +6  16 585 💤  - 5  1 025 ❌  - 1 

For more details on these failures, see this check.

Results for commit 94ea041. ± Comparison against base commit efd8375.

Copy link
Contributor

@milesgranger milesgranger left a comment

Choose a reason for hiding this comment

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

Small comment, but looks great otherwise. 👍

Comment on lines 3304 to +3307
# Warns for sort=None
with pytest.warns(FutureWarning, match="split_out>1"):
M.sum(ddf.groupby("x"), split_out=2)
with pytest.warns(None):
ddf.groupby("x").sum(split_out=2)
ddf.groupby("x").agg("sum", split_out=2)
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we remove the context entirely?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That's a pattern we use in pandas when we want to show that it doesn't warn anymore, so I would like to keep It, it's a bit more explicit

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay, no issue with that. Thanks!

@phofl phofl merged commit feaff0b into dask:main Jan 12, 2024
27 of 29 checks passed
@phofl phofl deleted the remove_deprecation branch January 12, 2024 09:00
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.

None yet

2 participants