PWD per drive

This commit is contained in:
pegasus.cadence@gmail.com
2024-11-19 04:55:15 -08:00
parent 3893fbb0b1
commit a84a859755
44 changed files with 2059 additions and 608 deletions

View File

@ -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

View File

@ -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'))

View File

@ -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(),