Function calculate_ema

Source
pub fn calculate_ema(
    df: &DataFrame,
    column: &str,
    window: usize,
) -> PolarsResult<Series>
Expand description

Calculates Exponential Moving Average (EMA)

§Arguments

  • df - DataFrame containing the input data
  • column - Column name to calculate EMA on
  • window - Window size for the EMA

§Returns

Returns a PolarsResult containing the EMA Series