Method: Polars::Expr#filter
- Defined in:
- lib/polars/expr.rb
permalink #filter(predicate) ⇒ Expr
Filter a single column.
Mostly useful in an aggregation context. If you want to filter on a DataFrame
level, use LazyFrame#filter
.
2819 2820 2821 |
# File 'lib/polars/expr.rb', line 2819 def filter(predicate) _from_rbexpr(_rbexpr.filter(predicate._rbexpr)) end |