I am using influxdb v2.0.9 with python and am wondering why values are not equal when reading them out again.
I.e. I am writing a value 0.000007345345 into the db but when I read them out I get 0.0000073 and the other digits are cut off.
I use the following code to read out the data:
query = 'from(bucket:"mybucket")\
|> range(start: -12h)\
|> filter(fn:(r) => r._measurement == "myData")'
result = client.query_api().query_data_frame(query, org=org)
final_frame = pd.DataFrame(data=result["_time"])
final_frame["value"] = result["_value"]
print(final_frame)
In influxdb's data explorer on the website I can see all digits when doing a query.
Any idea what is missing in my query to get the value including all digits?
UPDATE:
Meanwhile I found the solution. I have to define the default precision in pandas then I can see all the digits.
pd.set_option("display.precision", 10)