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 columncolumn_name
- Name of the column to calculate the standard deviation forwindow
- Window size for the rolling standard deviation
§Returns
Returns a PolarsResult containing the rolling standard deviation Series