Python: resample on a rolling basis

welcome to shbcf.ru