Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying Totals for a date dimension is raising an exception #21

Closed
mikeengland opened this issue Aug 23, 2016 · 0 comments
Closed

Specifying Totals for a date dimension is raising an exception #21

mikeengland opened this issue Aug 23, 2016 · 0 comments
Assignees
Labels
Milestone

Comments

@mikeengland
Copy link
Contributor

Example call:
res = slicer.highcharts.line_chart( metrics=['clicks'], dimensions=['date'], dimension_filters=[RangeFilter('date', date.today() - timedelta(days=14), date.today())], operations=[Totals('date')] )

Traceback (most recent call last): operations=[Totals('date')] File "/lib/python3.4/site-packages/fireant/slicer/managers.py", line 279, in _get_and_transform_data return tx.transform(df, display_schema) File "/lib/python3.4/site-packages/fireant/slicer/transformers/highcharts.py", line 47, in transform series = self._make_series(data_frame, dim_ordinal, display_schema) File "/lib/python3.4/site-packages/fireant/slicer/transformers/highcharts.py", line 90, in _make_series for idx, item in data_frame.iteritems()] File "/lib/python3.4/site-packages/fireant/slicer/transformers/highcharts.py", line 90, in <listcomp> for idx, item in data_frame.iteritems()] File "/lib/python3.4/site-packages/fireant/slicer/transformers/highcharts.py", line 95, in _make_series_item 'data': self._format_data(item), File "/lib/python3.4/site-packages/fireant/slicer/transformers/highcharts.py", line 168, in _format_data for key, value in column.iteritems() File "/lib/python3.4/site-packages/fireant/slicer/transformers/highcharts.py", line 169, in <listcomp> if not np.isnan(value)] File "/lib/python3.4/site-packages/fireant/slicer/transformers/highcharts.py", line 173, in _format_point return (_format_data_point(x), _format_data_point(y)) File "/lib/python3.4/site-packages/fireant/slicer/transformers/highcharts.py", line 13, in _format_data_point if np.isnan(value): TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe'

@twheys twheys self-assigned this Aug 23, 2016
@twheys twheys added this to the 0.0.14 milestone Aug 23, 2016
@twheys twheys added the bug label Aug 23, 2016
twheys added a commit that referenced this issue Aug 23, 2016
@twheys twheys closed this as completed Aug 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants