-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
pref(rust!, python): Unify sort
with SortOptions
and SortMultipleOptions
#15590
Conversation
sort
with SortOptions
and SortMultipleOptions
. sort
with SortOptions
and SortMultipleOptions
.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15590 +/- ##
==========================================
- Coverage 81.15% 81.10% -0.06%
==========================================
Files 1367 1369 +2
Lines 174928 175204 +276
Branches 2530 2530
==========================================
+ Hits 141971 142099 +128
- Misses 32482 32629 +147
- Partials 475 476 +1 ☔ View full report in Codecov by Sentry. |
CodSpeed Performance ReportMerging #15590 will not alter performanceComparing Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks good. Can you do a rebase?
This reverts commit 9fde9102bdea36bffd24d78bf171b03d4cddb468.
sort
with SortOptions
and SortMultipleOptions
. sort
with SortOptions
and SortMultipleOptions
Regarding |
Just be consistent with the columns input. e.g. for If all |
@CanglongCl Oops, my mistake. I didn't notice the descending aspect and assumed the order referred to the sequence in which the columns were being sorted. Thanks for the response anyway! |
Unify all
sort
,arg_sort
and related functions in rust. Sort by single series functions useSortOptions
as options whereas sort by multi series functions useSortMultipleOptions
. Add related options for python side.Closes #9820, closes #10365.
SortOptions
andSortMultipleOptions
SortOptions
Example:
SortMultipleOptions
Example:
Rust API changes
Deprecation:
DataFrame::sort_with_options
.New implementation:
For
DataFrame
For
LazyFrame
For
Expr
For
Series
For
Functions
Python API Changes
Added
nulls_last: bool = False
multithreaded: bool = True
maintain_order: bool = False
for all sort related apis if not exists.