mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 12:55:47 +02:00
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:
@ -149,7 +149,8 @@ impl PluginCommand for LazySortBy {
|
|||||||
nulls_last: vec![nulls_last],
|
nulls_last: vec![nulls_last],
|
||||||
multithreaded: true,
|
multithreaded: true,
|
||||||
maintain_order,
|
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,
|
limit: None,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ impl PluginCommand for ArgSort {
|
|||||||
),
|
),
|
||||||
},
|
},
|
||||||
Example {
|
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",
|
example: "[1 2 2 3 3] | polars into-df | polars arg-sort --limit 2",
|
||||||
result: Some(
|
result: Some(
|
||||||
NuDataFrame::try_from_columns(
|
NuDataFrame::try_from_columns(
|
||||||
|
Reference in New Issue
Block a user