Calculation of mean with rolling lookback window in pandas DataFrame

preview_player
Показать описание
This short tutorial shows how to simply calculate the mean and standard deviation with a rolling lookback window. With this dynamic mean and standard deviation based on the past x days, the video also shows how to calculate an interval between +/- 2*std away from the mean. The video shows a simple example with the .rolling().mean() and rolling().std() command.
Рекомендации по теме