mistercrunch opened a new issue #3925: Error around the DECIMAL type in Presto
URL: https://github.com/apache/incubator-superset/issues/3925
 
 
   `No numeric types to aggregate`
   ```
   Traceback (most recent call last):
     File 
"/srv/venvs/service/trusty/service_venv_python3.6/lib/python3.6/site-packages/superset/viz.py",
 line 277, in get_payload
       data = self.get_data(df)
     File 
"/srv/venvs/service/trusty/service_venv_python3.6/lib/python3.6/site-packages/superset/viz.py",
 line 1035, in get_data
       df = self.process_data(df)
     File 
"/srv/venvs/service/trusty/service_venv_python3.6/lib/python3.6/site-packages/superset/viz.py",
 line 971, in process_data
       values=fd.get('metrics'))
     File 
"/srv/venvs/service/trusty/service_venv_python3.6/lib/python3.6/site-packages/pandas/core/reshape/pivot.py",
 line 136, in pivot_table
       agged = grouped.agg(aggfunc)
     File 
"/srv/venvs/service/trusty/service_venv_python3.6/lib/python3.6/site-packages/pandas/core/groupby.py",
 line 4036, in aggregate
       return super(DataFrameGroupBy, self).aggregate(arg, *args, **kwargs)
     File 
"/srv/venvs/service/trusty/service_venv_python3.6/lib/python3.6/site-packages/pandas/core/groupby.py",
 line 3468, in aggregate
       result, how = self._aggregate(arg, _level=_level, *args, **kwargs)
     File 
"/srv/venvs/service/trusty/service_venv_python3.6/lib/python3.6/site-packages/pandas/core/base.py",
 line 435, in _aggregate
       **kwargs), None
     File 
"/srv/venvs/service/trusty/service_venv_python3.6/lib/python3.6/site-packages/pandas/core/base.py",
 line 391, in _try_aggregate_string_function
       return f(*args, **kwargs)
     File 
"/srv/venvs/service/trusty/service_venv_python3.6/lib/python3.6/site-packages/pandas/core/groupby.py",
 line 1037, in mean
       return self._cython_agg_general('mean', **kwargs)
     File 
"/srv/venvs/service/trusty/service_venv_python3.6/lib/python3.6/site-packages/pandas/core/groupby.py",
 line 3354, in _cython_agg_general
       how, alt=alt, numeric_only=numeric_only)
     File 
"/srv/venvs/service/trusty/service_venv_python3.6/lib/python3.6/site-packages/pandas/core/groupby.py",
 line 3425, in _cython_agg_blocks
       raise DataError('No numeric types to aggregate')
   pandas.core.base.DataError: No numeric types to aggregate
   ```

----------------------------------------------------------------
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

Reply via email to