pub fn calculate_rate_of_change( df: &DataFrame, column_name: &str, period: usize, ) -> PolarsResult<Series>
Calculate the rate of change (ROC) of a column in a DataFrame
df
column_name
period
Returns a PolarsResult containing the ROC Series