see here #195 It seems that in the latest version, if a DataFrame contains nan, inf elements, there will be error when writing to influxdb. The problem is that the line protocol doesn't support "value1=nan" or "value1=inf". You can drop ...
influxdb-client[extras]: adds the ability to use Pandas DataFrames. The Pandas library is a commonly used data analysis tool. These additional dependencies are large in size and not always needed; therefore, it was included as a separate extra package. API & documentation The client library AP...
Here’s a step-by-step way to initialize theclientand subsequently thewrite_apifor InfluxDB using the Python client: Installation(if you haven’t done this already): You first need to have theinfluxdb-clientlibrary installed. You can do that using pip: pip install influxdb-client Initializati...
Run %timeit in IPython to measure performance of writing 6000 points in both influxdb-python v2.6 and v2.7.3: import numpy as np from pandas import DataFrame, date_range rng = date_range('2015-1-1', periods=6000, freq='s') data = DataFrame({'value': np.random.randn(6000)}, index...