Cumulative over window
Steps to reproduce
I have created a rolling windows in Pandas:
t = temp.rolling("7D", on="trans_date")["amt"].count()
It gives me the below:

The 7 days is inclusive of the current member's value.
However, in atoti, the 7D is the 7 previous days + the current member, i.e. 8 days worth of value:

I'm aware that the documentation did indicate it's the previous number of days, but is it better to align it with Pandas which most people are acquainted with? I.e. 7 days refers to 6 previous days + current days.
Environment
- atoti: 0.6.2
- Python: 3.8.12
- Operating System: win32
Could you help to explain how the "-1D" works?
If we look at the previous day plus current day, then on 2021-09-06 (blue), we should be having 3 and not 5.
On 2021-09-07, shouldn't the first row be 2?

Hi Hui Fang, I cannot reproduce this with a simple example on my side. Can you provide a minimal reproduction case please?
Indeed this is strange and not the same as excel or pandas :
m["Cumulative datetime"] = tt.agg.sum(
m["contributors.COUNT"],
scope=tt.scope.cumulative(l["datetime"], window=("-1D", None)),
)
atoti:
pandas:
excel:


atoti result for -1D is the same as pandas for 2d :

Hello, The next release will support cumulative window like pandas and Excel.
Hi,
I just tried the CumulativeScope with mean aggregation:
m["Moving_average_1m"] = tt.agg.mean(
m["Weighted average price"],
scope=tt.CumulativeScope(level=l["time_1m"], window=range(-4, 0)),
)
It is accumulating over window of 5 instead of the 4 that I have intended:

sample code: cumulative.zip