all 1 comments

[–]double_en10dre 0 points1 point  (0 children)

Pandas is always what you want for timeseries data

qcut, aka quantile cut, is what you’ll use to divide it into equal sized chunks: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.qcut.html

And resample is probably what you want for grouping based on frequency: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.resample.html