I'm looking to do a rolling mean on a dataframe, but the rolling mean has to cover the length of the column in a timestamp.
For example, in time[1] (with one row), compute rolling mean on all the column rows(1), then on time[2], do the same on all rows(2), and so on. Progressing the window as the timestamp progresses.
Also, this is done by group. So if it's doing this on group A, it has to sort of reset, as it goes to group B
It's kinda like this topic: Computing rolling mean in data.table with adaptive window lengths
But on python, and considering timestamp.
Also, the dataset is big, so it has to be something optimal, iterations and loops would take years