Polars limit housekeeping (#16173)

# Description
Removed a todo and fixed an example.

---------

Co-authored-by: Jack Wright <jack.wright@nike.com>
This commit is contained in:
Jack Wright
2025-07-14 15:32:04 -07:00
committed by GitHub
parent 288f419f7b
commit 202d3b2d11
2 changed files with 3 additions and 2 deletions

View File

@ -149,7 +149,8 @@ impl PluginCommand for LazySortBy {
nulls_last: vec![nulls_last],
multithreaded: true,
maintain_order,
// todo - expose limit
// Applying a limit here will result in a panic
// it is not supported by polars in this context
limit: None,
};

View File

@ -94,7 +94,7 @@ impl PluginCommand for ArgSort {
),
},
Example {
description: "Returns indexes for a sorted series",
description: "Returns indexes for a sorted series and applying a limit",
example: "[1 2 2 3 3] | polars into-df | polars arg-sort --limit 2",
result: Some(
NuDataFrame::try_from_columns(