klaaskooistra commented on issue #4615: 'NoneType' object has no attribute 'fillna' with daylight savings error in time-series visualizations. URL: https://github.com/apache/incubator-superset/issues/4615#issuecomment-373026016 Stacktrace: > >2018-03-14 14:43:07,096:ERROR:root:Tz-aware datetime.datetime cannot be converted to >datetime64 unless utc=True > Traceback (most recent call last): > File "/Code/superset/venv/lib/python3.6/site-packages/pandas/core/tools/datetimes.py", line 303, in _convert_listlike > values, tz = tslib.datetime_to_datetime64(arg) > File "pandas/_libs/tslib.pyx", line 1870, in pandas._libs.tslib.datetime_to_datetime64 > ValueError: Array must be all same time zone > > During handling of the above exception, another exception occurred: > > > Traceback (most recent call last): > File "/Code/superset/venv/lib/python3.6/site-packages/superset/viz.py", line 325, in get_df_payload > df = self.get_df(query_obj) > File "/Code/superset/venv/lib/python3.6/site-packages/superset/viz.py", line 162, in get_df > df[DTTM_ALIAS], utc=False, format=timestamp_format) > File "/Code/superset/venv/lib/python3.6/site-packages/pandas/core/tools/datetimes.py", line 373, in to_datetime > values = _convert_listlike(arg._values, True, format) > File "/Code/superset/venv/lib/python3.6/site-packages/pandas/core/tools/datetimes.py", line 306, in _convert_listlike > raise e > File "/Code/superset/venv/lib/python3.6/site-packages/pandas/core/tools/datetimes.py", line 294, in _convert_listlike > require_iso8601=require_iso8601 > File "pandas/_libs/tslib.pyx", line 2156, in pandas._libs.tslib.array_to_datetime > File "pandas/_libs/tslib.pyx", line 2202, in pandas._libs.tslib.array_to_datetime > ValueError: Tz-aware datetime.datetime cannot be converted to datetime64 unless utc=True > 2018-03-14 14:43:07,097:ERROR:root:'NoneType' object has no attribute 'fillna' > Traceback (most recent call last): > File "/Code/superset/venv/lib/python3.6/site-packages/superset/views/core.py", line 1059, in generate_json > payload = viz_obj.get_payload() > File "/Code/superset/venv/lib/python3.6/site-packages/superset/viz.py", line 293, in get_payload > payload['data'] = self.get_data(df) > File "/Code/superset/venv/lib/python3.6/site-packages/superset/viz.py", line 1139, in get_data > df = self.process_data(df) > File "/Code/superset/venv/lib/python3.6/site-packages/superset/viz.py", line 1044, in process_data > df = df.fillna(0) > AttributeError: 'NoneType' object has no attribute 'fillna'
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
