when output file contains empty value(N/A) it makes exception.
Expected behavior
I want to get dataframe like pivot table
Actual behavior
It produce following Exception
Traceback (most recent call last):
File "/Users/woochankim/Project/AI/download_sensor_data/main.py", line 35, in <module>
result = query_api.query_data_frame(query, params=param)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/woochankim/Project/AI/download_sensor_data/.venv/lib/python3.11/site-packages/influxdb_client/client/query_api.py", line 254, in query_data_frame
return self._to_data_frames(_generator)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/woochankim/Project/AI/download_sensor_data/.venv/lib/python3.11/site-packages/influxdb_client/client/_base.py", line 318, in _to_data_frames
_dataFrames = list(_generator)
^^^^^^^^^^^^^^^^
File "/Users/woochankim/Project/AI/download_sensor_data/.venv/lib/python3.11/site-packages/influxdb_client/client/flux_csv_parser.py", line 115, in generator
for val in parser._parse_flux_response():
File "/Users/woochankim/Project/AI/download_sensor_data/.venv/lib/python3.11/site-packages/influxdb_client/client/flux_csv_parser.py", line 126, in _parse_flux_response
for val in self._parse_flux_response_row(metadata, csv):
File "/Users/woochankim/Project/AI/download_sensor_data/.venv/lib/python3.11/site-packages/influxdb_client/client/flux_csv_parser.py", line 228, in _parse_flux_response_row
flux_record = self.parse_record(metadata.table_index - 1, metadata.table, csv)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/woochankim/Project/AI/download_sensor_data/.venv/lib/python3.11/site-packages/influxdb_client/client/flux_csv_parser.py", line 265, in parse_record
record.values[column_name] = self._to_value(str_val, fluxColumn)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/woochankim/Project/AI/download_sensor_data/.venv/lib/python3.11/site-packages/influxdb_client/client/flux_csv_parser.py", line 277, in _to_value
return self._to_value(np.nan, column)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/woochankim/Project/AI/download_sensor_data/.venv/lib/python3.11/site-packages/influxdb_client/client/flux_csv_parser.py", line 288, in _to_value
return int(str_val)
^^^^^^^^^^^^
ValueError: cannot convert float NaN to integer
Specifications
Code sample to reproduce problem
when output file contains empty value(N/A) it makes exception.
Expected behavior
I want to get dataframe like pivot table
Actual behavior
It produce following Exception
Additional info
No response