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
2 changed files with 8 additions and 9 deletions

View File

@ -98,7 +98,13 @@ fn command(mut args: CommandArgs) -> Result<OutputStream, ShellError> {
})?;
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))?;
Ok(OutputStream::one(NuSeries::series_to_value(