Pandas, Data Science, Python, Data Analysis, Programming.
min_periods=1).mean() # Polars rolling mean df_pl['sales'].rolling_mean(1440, min_periods=1) Once again, Polars comes out as the winner. There’s a small syntax difference: Polars has the “rolling_mean()” method, while Pandas uses the “rolling()” method combined with other functions like “mean()”.