Expand description
Vector math over columns: what math code spaces compile to, and handy in Rust ones.
Missing values are NaN; windows that are not full yet give NaN.
Functionsยง
- choose
if(c, a, b):awherecis true (not 0, not NaN), elseb.- count
- count_
arg - The first value of a window/period argument, as a count (at least 1).
- cumsum
- Running total (NaN counts as 0).
- diff
- Change from the previous row.
- ema
- Exponential moving average with span
n(alpha = 2 / (n + 1)), seeded with the first value. - first
- flag
- k
ncopies ofv.- lag
- The value
nrows earlier. - last
- lead
- The value
nrows later. - map
- max
- mean
- min
- pct_
change - Change from the previous row in percent.
- rolling_
max - rolling_
min - rolling_
std - rolling_
sum - row
- Row number from 0.
- sma
- Simple moving average over
nvalues. - std
- sum
- Aggregates: one value, repeated for every row.
- truthy
- zip
- Element by element (
aandbhave the same length). - zscore
- Standard score against the whole column.