This is an automated email from the ASF dual-hosted git repository. johnbodley pushed a commit to branch john-bodley--fb-prophet-fix-frequencies in repository https://gitbox.apache.org/repos/asf/superset.git
commit 059260403a95c3f9538b933adcff8efacc1731ea Author: John Bodley <[email protected]> AuthorDate: Wed Jun 8 23:19:07 2022 -0700 [fbprophet] Fix frequencies --- superset/utils/pandas_postprocessing/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/superset/utils/pandas_postprocessing/utils.py b/superset/utils/pandas_postprocessing/utils.py index 46f5a0c505..ab39135918 100644 --- a/superset/utils/pandas_postprocessing/utils.py +++ b/superset/utils/pandas_postprocessing/utils.py @@ -86,10 +86,10 @@ PROPHET_TIME_GRAIN_MAP = { "P1M": "M", "P3M": "Q", "P1Y": "A", - "1969-12-28T00:00:00Z/P1W": "W", - "1969-12-29T00:00:00Z/P1W": "W", - "P1W/1970-01-03T00:00:00Z": "W", - "P1W/1970-01-04T00:00:00Z": "W", + "1969-12-28T00:00:00Z/P1W": "W-SUN", + "1969-12-29T00:00:00Z/P1W": "W-MON", + "P1W/1970-01-03T00:00:00Z": "W-SAT", + "P1W/1970-01-04T00:00:00Z": "W-SUN", } RESAMPLE_METHOD = ("asfreq", "bfill", "ffill", "linear", "median", "mean", "sum")
