BUG: Using df.groupby(..).rolling(..)
on non-monotonic timestamp column does not raise an exception
#43909
Closed
2 of 3 tasks
Labels
Bug
Error Reporting
Incorrect or improved errors from pandas
Groupby
Window
rolling, ewma, expanding
Milestone
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the master branch of pandas.
Reproducible Example
Issue Description
When calling
df.groupby(..).rolling(on='...', ...)
on someTimestamp
column (with timedelta window) which is not sorted, pandas gives some meaningless results.Expected Behavior
An exception should be raised, as is the case when we call
df.rolling(on=...)
(without thegroupby
) on non-monotonic columnInstalled Versions
The text was updated successfully, but these errors were encountered: