Method: Polars::Expr#shift
- Defined in:
- lib/polars/expr.rb
#shift(n = 1, fill_value: nil) ⇒ Expr
Shift the values by a given period.
1993 1994 1995 1996 1997 1998 1999 |
# File 'lib/polars/expr.rb', line 1993 def shift(n = 1, fill_value: nil) if !fill_value.nil? fill_value = Utils.parse_into_expression(fill_value, str_as_lit: true) end n = Utils.parse_into_expression(n) wrap_expr(_rbexpr.shift(n, fill_value)) end |