python - Pandas rolling apply with variable window length -
i have series values indexed timestamps. these timestamps irregularly spaced , calculate rolling mean (say) on lastly n seconds, n constant. unfortunately, resampling @ regular intervals before calculating rolling quantity not alternative - rolling quantity has calculated on entire dataset.
is there way in pandas?
python pandas
No comments:
Post a Comment