fixed syntax shape requirements for --quantiles option for polars summary (#12878)

Fix for #12730

All of the code expected a list of floats, but the syntax shape expected
a table. Resolved by changing the syntax shape to list of floats.

cc: @maxim-uvarov
This commit is contained in:
Jack Wright 2024-05-15 14:55:07 -07:00 committed by GitHub
parent 06fe7d1e16
commit 6f3dbc97bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,7 +38,7 @@ impl PluginCommand for Summary {
) )
.named( .named(
"quantiles", "quantiles",
SyntaxShape::Table(vec![]), SyntaxShape::List(Box::new(SyntaxShape::Float)),
"provide optional quantiles", "provide optional quantiles",
Some('q'), Some('q'),
) )