Enable dataframe command by default (#3672)

* Enable dataframe command by default

* Fix unwrap
This commit is contained in:
JT 2021-06-23 21:04:09 +12:00 committed by GitHub
parent edbc828fc3
commit 4fe9d8a007
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 9 deletions

View File

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

View File

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