Skip to content

Commit

Permalink
feat(rust): standardize error message in crate polars-algo
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDataScientistNL committed Oct 18, 2023
1 parent c5f8aad commit a5e02c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/polars-algo/src/algo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub fn hist(s: &Series, bins: Option<&Series>, bin_count: Option<usize>) -> Resu
DataType::UInt16 => (lit(u32::MIN), AnyValue::UInt16(u16::MAX)),
_ => polars_bail!(
InvalidOperation:
"cannot take histogram of non-numeric types; consider a group_by and count"
"cannot take histogram of non-numeric types; consider a `group_by` and `count`"
),
};
let mut bins = bins.extend_constant(max_value, 1)?;
Expand Down

0 comments on commit a5e02c6

Please sign in to comment.