Function calculate_rolling_std

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

Calculate the rolling standard deviation of a column in a DataFrame

§Arguments

  • df - DataFrame containing the column
  • column_name - Name of the column to calculate the standard deviation for
  • window - Window size for the rolling standard deviation

§Returns

Returns a PolarsResult containing the rolling standard deviation Series