Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

DataframeClient returns int64 data for a float field #665

Closed
lovasoa opened this issue Dec 14, 2018 · 1 comment · Fixed by #734
Closed

DataframeClient returns int64 data for a float field #665

lovasoa opened this issue Dec 14, 2018 · 1 comment · Fixed by #734

Comments

@lovasoa
Copy link
Contributor

lovasoa commented Dec 14, 2018

When a measurement in influxdb happens to have only round values in a float field, it is returned by the DataframeClient with an int64 dtype (instead of float64).

I would expect float fields to be returned as float64 columns in the returned dataframe, independently of their value.

Here is a notebook session that illustrates the bug:

image

influx_client_bug.ipynb.zip

@lovasoa lovasoa changed the title DataframeClient returns int64 data for a field stored as float64 DataframeClient returns int64 data for a float field Dec 14, 2018
@clslgrnc
Copy link
Contributor

clslgrnc commented Jan 3, 2019

It would also be nice if sum, mean, ... of float fields where returned as float even if the result can be represented as an integer.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants