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

depr(python): Rename parameter descending to reverse in top_k methods #16817

Merged
merged 2 commits into from
Jun 9, 2024

Conversation

stinodego
Copy link
Member

Closes #15236

Changes

  • Rename the descending parameter to reverse in DataFrame/LazyFrame.top_k/bottom_k and Expr.top_k_by/bottom_k_by.

@github-actions github-actions bot added deprecation Add a deprecation warning to outdated functionality python Related to Python Polars labels Jun 7, 2024
@stinodego stinodego force-pushed the depr-top-k-descending branch from b17f51f to c24b00a Compare June 7, 2024 23:31
Copy link

codecov bot commented Jun 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.39%. Comparing base (38149d6) to head (e069dba).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16817      +/-   ##
==========================================
- Coverage   81.39%   81.39%   -0.01%     
==========================================
  Files        1424     1424              
  Lines      187623   187626       +3     
  Branches     2691     2697       +6     
==========================================
- Hits       152719   152711       -8     
- Misses      34409    34420      +11     
  Partials      495      495              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ritchie46 ritchie46 merged commit 12faa47 into main Jun 9, 2024
18 checks passed
@ritchie46 ritchie46 deleted the depr-top-k-descending branch June 9, 2024 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecation Add a deprecation warning to outdated functionality python Related to Python Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

descending arg looks backwards in top_k
2 participants