You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/08/04 18:25:46 UTC
[GitHub] [incubator-superset] AndLLA edited a comment on issue #7981: Fix
Pandas 0.24 DateOffset bug pt. 2
AndLLA edited a comment on issue #7981: Fix Pandas 0.24 DateOffset bug pt. 2
URL: https://github.com/apache/incubator-superset/pull/7981#issuecomment-518025088
The patch works for my use case (time grain=day, frequency 1week)
Thanks !!!!
I tried an alternative configuration (freq = 4weeks), but the chart is still the same as for 1week.
I also tried "frequency = day", but I get an error (but maybe I'm miss-using the chart): Tick offset with `normalize=True` are not allowed.
Traceback (most recent call last):
File "/home/superset/venvSS/lib/python3.6/site-packages/superset/views/base.py", line 122, in wraps
return f(self, *args, **kwargs)
File "/home/superset/venvSS/lib/python3.6/site-packages/superset/utils/decorators.py", line 70, in wrapper
return f(*args, **kwargs)
File "/home/superset/venvSS/lib/python3.6/site-packages/superset/views/core.py", line 1097, in explore_json
viz_obj, csv=csv, query=query, results=results, samples=samples
File "/home/superset/venvSS/lib/python3.6/site-packages/superset/views/core.py", line 1018, in generate_json
payload = viz_obj.get_payload()
File "/home/superset/venvSS/lib/python3.6/site-packages/superset/viz.py", line 379, in get_payload
payload["data"] = self.get_data(df)
File "/home/superset/venvSS/lib/python3.6/site-packages/superset/viz.py", line 1401, in get_data
freq = type(freq)(freq.n, normalize=True, **freq.kwds)
File "/home/superset/venvSS/lib/python3.6/site-packages/pandas/tseries/offsets.py", line 2247, in __init__
raise ValueError("Tick offset with `normalize=True` are not "
ValueError: Tick offset with `normalize=True` are not allowed.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org