In pandas it is easy to implement those features. Is it possible to compute expanding window features (such mean, standard deviation, etc.) in polars?
AdithyaPundit
Is it possible to compute expanding window features (such mean, standard deviation, etc.) in polars?
Share
You can perform <strong>min(), max()</strong> functions to perform calculations.
Alternatively you can use <strong><code>rolling_sum()</code></strong> with window size for the number of rows.
You will get a TypeError if you try to use expanding windows features in Polars dataframe. For this you need to convert polars into pandas dataframe.