mirror of
https://github.com/apache/superset.git
synced 2026-05-11 19:05:24 +00:00
fix: rolling and cum operator on multiple series (#16945)
* fix: rolling and cum operator on multiple series
* add UT
* updates
(cherry picked from commit fd8461406d)
This commit is contained in:
committed by
Elizabeth Thompson
parent
4d33f7b7b6
commit
19d2fef490
@@ -165,3 +165,19 @@ prophet_df = DataFrame(
|
||||
"b": [4, 3, 4.1, 3.95],
|
||||
}
|
||||
)
|
||||
|
||||
single_metric_df = DataFrame(
|
||||
{
|
||||
"dttm": to_datetime(["2019-01-01", "2019-01-01", "2019-01-02", "2019-01-02",]),
|
||||
"country": ["UK", "US", "UK", "US"],
|
||||
"sum_metric": [5, 6, 7, 8],
|
||||
}
|
||||
)
|
||||
multiple_metrics_df = DataFrame(
|
||||
{
|
||||
"dttm": to_datetime(["2019-01-01", "2019-01-01", "2019-01-02", "2019-01-02",]),
|
||||
"country": ["UK", "US", "UK", "US"],
|
||||
"sum_metric": [5, 6, 7, 8],
|
||||
"count_metric": [1, 2, 3, 4],
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user