-
Notifications
You must be signed in to change notification settings - Fork 915
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
Move cudf._lib.sort to cudf.core._internals #17488
Conversation
…to cudf/_lib/sort
column_order = [plc.types.Order.DESCENDING] * len(source_columns) | ||
for idx, val in enumerate(ascending): | ||
if val: | ||
column_order[idx] = plc.types.Order.ASCENDING |
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.
column_order = [plc.types.Order.DESCENDING] * len(source_columns) | |
for idx, val in enumerate(ascending): | |
if val: | |
column_order[idx] = plc.types.Order.ASCENDING | |
column_order = [ | |
plc.types.Order.ASCENDING if val else plc.types.Order.DESCENDING | |
] |
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.
Good idea. (Incorporated the missing for loop here though)
null_precedence = [plc.types.NullOrder.AFTER] * len(source_columns) | ||
for idx, val in enumerate(null_position): | ||
if val: | ||
null_precedence[idx] = plc.types.NullOrder.BEFORE |
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.
null_precedence = [plc.types.NullOrder.AFTER] * len(source_columns) | |
for idx, val in enumerate(null_position): | |
if val: | |
null_precedence[idx] = plc.types.NullOrder.BEFORE | |
null_precedence = [ | |
plc.types.NullOrder.BEFORE if val else plc.types.NullOrder.AFTER | |
] |
/merge |
Description
Contributes to #17317
Checklist