Skip to content

Commit

Permalink
fix(rust,python): return correct display/repr names for NaN-related e…
Browse files Browse the repository at this point in the history
…xpressions (pola-rs#6721)
  • Loading branch information
alexander-beedie authored and vincent committed Feb 9, 2023
1 parent 41d51a8 commit 2b068d3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion polars/polars-lazy/polars-plan/src/dsl/function_expr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,11 @@ impl Display for FunctionExpr {
#[cfg(all(feature = "rolling_window", feature = "moment"))]
RollingSkew { .. } => "rolling_skew",
ShiftAndFill { .. } => "shift_and_fill",
Nan(_) => "nan",
Nan(func) => match func {
NanFunction::IsNan => "is_nan",
NanFunction::IsNotNan => "is_not_nan",
NanFunction::DropNans => "drop_nans",
},
#[cfg(feature = "round_series")]
Clip { min, max } => match (min, max) {
(Some(_), Some(_)) => "clip",
Expand Down

0 comments on commit 2b068d3

Please sign in to comment.