Method: Polars::Expr#diff
- Defined in:
- lib/polars/expr.rb
#diff(n: 1, null_behavior: "ignore") ⇒ Expr
Calculate the n-th discrete difference.
5891 5892 5893 |
# File 'lib/polars/expr.rb', line 5891 def diff(n: 1, null_behavior: "ignore") _from_rbexpr(_rbexpr.diff(n, null_behavior)) end |