Skip to content

Commit

Permalink
fix(rust)!: Rename not_ expression to not on the Rust side (pola-…
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego authored Nov 22, 2023
1 parent 8de3997 commit 08d009f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/polars-plan/src/dsl/function_expr/boolean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl Display for BooleanFunction {
IsIn => "is_in",
AnyHorizontal => "any_horizontal",
AllHorizontal => "all_horizontal",
Not => "not_",
Not => "not",
};
write!(f, "{s}")
}
Expand Down Expand Up @@ -100,7 +100,7 @@ impl From<BooleanFunction> for SpecialEq<Arc<dyn SeriesUdf>> {
IsIn => wrap!(is_in),
AllHorizontal => map_as_slice!(all_horizontal),
AnyHorizontal => map_as_slice!(any_horizontal),
Not => map!(not_),
Not => map!(not),
}
}
}
Expand Down Expand Up @@ -188,6 +188,6 @@ fn all_horizontal(s: &[Series]) -> PolarsResult<Series> {
polars_ops::prelude::all_horizontal(s)
}

fn not_(s: &Series) -> PolarsResult<Series> {
fn not(s: &Series) -> PolarsResult<Series> {
Ok(s.bool()?.not().into_series())
}

0 comments on commit 08d009f

Please sign in to comment.