Skip to content Skip to sidebar Skip to footer

Trouble Inserting Dataframe Into Influxdb Using Python

I'm trying to insert a very large CSV file into InfluxDB and am inserting it as such in Python: influx_pd = influxdb.DataFrameClient(host, port, user, password, db, verify_ssl=Fals

Solution 1:

So I realized that I had to explicitly specify the protocol to be json, as such:

influx_pd.write_points(frame, measurement='enroll_pd', protocol='json')

in addition to filling in NaN values (JSON has no support for those) with an imputation method. I thought the docs I was under the impression that json was the default, I guess that was not the case.

This, of course, might only be one solution. I welcome other, alternative solutions that work.

Post a Comment for "Trouble Inserting Dataframe Into Influxdb Using Python"