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

dataframe with Int64 type upload error #99

Closed
tonylee2016 opened this issue May 24, 2020 · 2 comments · Fixed by #97
Closed

dataframe with Int64 type upload error #99

tonylee2016 opened this issue May 24, 2020 · 2 comments · Fixed by #97
Milestone

Comments

@tonylee2016
Copy link

tonylee2016 commented May 24, 2020

elif isinstance(value, int) and not isinstance(value, bool):

one column of my dataframe is based on numpy.int64.

isinstance(value, int) will not capture it.

type(value)
Out[4]: numpy.int64
isinstance(value, int)
Out[5]: False

related to this one

numpy/numpy#2951

which suggest to use isinstance(..., np.integer)

@bednar bednar added this to the 1.8.0 milestone May 25, 2020
@bednar
Copy link
Contributor

bednar commented May 25, 2020

Hi @tonylee2016,

thanks for using our client.

The PR #97 covers your requirements. As a workaround you could use a version from #97 via:

pip install git+https://github.com/influxdata/influxdb-client-python.git@feat/dataframe-optimalization

Regards

@bednar bednar closed this as completed in #97 Jun 2, 2020
@bednar
Copy link
Contributor

bednar commented Jun 2, 2020

Hi @tonylee2016,

The issue is fixed in 1.8.0 milestone.

If you would like to use a dev version then install client via:

pip install git+https://github.com/influxdata/influxdb-client-python.git@master

Regards

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

Successfully merging a pull request may close this issue.

2 participants