mirror of
https://github.com/nushell/nushell.git
synced 2024-12-23 07:30:13 +01:00
Enable dataframe command by default (#3672)
* Enable dataframe command by default * Fix unwrap
This commit is contained in:
parent
edbc828fc3
commit
4fe9d8a007
@ -87,6 +87,7 @@ default = [
|
|||||||
"fetch",
|
"fetch",
|
||||||
"zip-support",
|
"zip-support",
|
||||||
"executable-support",
|
"executable-support",
|
||||||
|
"dataframe",
|
||||||
]
|
]
|
||||||
|
|
||||||
stable = ["default"]
|
stable = ["default"]
|
||||||
@ -156,14 +157,6 @@ dataframe = [
|
|||||||
"nu_plugin_to_bson/dataframe",
|
"nu_plugin_to_bson/dataframe",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
[profile.release]
|
|
||||||
#strip = "symbols" #Couldn't get working +nightly
|
|
||||||
codegen-units = 1 #Reduce parallel codegen units
|
|
||||||
lto = true #Link Time Optimization
|
|
||||||
# opt-level = 'z' #Optimize for size
|
|
||||||
# debug = true
|
|
||||||
|
|
||||||
# Core plugins that ship with `cargo install nu` by default
|
# Core plugins that ship with `cargo install nu` by default
|
||||||
# Currently, Cargo limits us to installing only one binary
|
# Currently, Cargo limits us to installing only one binary
|
||||||
# unless we use [[bin]], so we use this as a workaround
|
# unless we use [[bin]], so we use this as a workaround
|
||||||
|
@ -98,7 +98,13 @@ fn command(mut args: CommandArgs) -> Result<OutputStream, ShellError> {
|
|||||||
})?;
|
})?;
|
||||||
|
|
||||||
let res = chunked
|
let res = chunked
|
||||||
.set(bool_mask, Some(val.to_f64().unwrap()))
|
.set(
|
||||||
|
bool_mask,
|
||||||
|
Some(
|
||||||
|
val.to_f64()
|
||||||
|
.expect("internal error: expected f64-compatible decimal"),
|
||||||
|
),
|
||||||
|
)
|
||||||
.map_err(|e| parse_polars_error::<&str>(&e, &value.tag.span, None))?;
|
.map_err(|e| parse_polars_error::<&str>(&e, &value.tag.span, None))?;
|
||||||
|
|
||||||
Ok(OutputStream::one(NuSeries::series_to_value(
|
Ok(OutputStream::one(NuSeries::series_to_value(
|
||||||
|
Loading…
Reference in New Issue
Block a user