mirror of
https://github.com/nushell/nushell.git
synced 2025-08-13 19:37:20 +02:00
PWD per drive
This commit is contained in:
@ -34,7 +34,7 @@ impl PluginCommand for ExprAggGroups {
|
||||
|
||||
fn examples(&self) -> Vec<Example> {
|
||||
vec![Example {
|
||||
description: "Get the groiup index of the group by operations.",
|
||||
description: "Get the group index of the group by operations.",
|
||||
example: r#"[[group value]; [one 94] [one 95] [one 96] [two 97] [two 98] [two 99]]
|
||||
| polars into-df
|
||||
| polars group-by group
|
||||
|
@ -28,7 +28,7 @@ impl PluginCommand for ValueCount {
|
||||
.named(
|
||||
"column",
|
||||
SyntaxShape::String,
|
||||
"Provide a custom name for the coutn column",
|
||||
"Provide a custom name for the count column",
|
||||
Some('c'),
|
||||
)
|
||||
.switch("sort", "Whether or not values should be sorted", Some('s'))
|
||||
|
@ -1201,6 +1201,18 @@ fn series_to_values(
|
||||
|
||||
Ok(values)
|
||||
}
|
||||
DataType::Decimal(_precision, _scale) => {
|
||||
let casted = series
|
||||
.cast(&DataType::Float64)
|
||||
.map_err(|e| ShellError::GenericError {
|
||||
error: "Errors casting decimal column to float".into(),
|
||||
msg: "".into(),
|
||||
span: None,
|
||||
help: Some(e.to_string()),
|
||||
inner: vec![],
|
||||
})?;
|
||||
series_to_values(&casted, maybe_from_row, maybe_size, span)
|
||||
}
|
||||
e => Err(ShellError::GenericError {
|
||||
error: "Error creating Dataframe".into(),
|
||||
msg: "".to_string(),
|
||||
|
Reference in New Issue
Block a user