Open
Description
Specifications
- Client Version: 1.36.0
- InfluxDB Version: 2.7
Code sample to reproduce problem
query_api.query_data_frame(query)
Expected behavior
The query should be executed without warnings.
Actual behavior
Pandas outputs a FutureWarning:
/usr/local/lib/python3.11/site-packages/influxdb_client/client/flux_csv_parser.py:256: FutureWarning:
The behavior of array concatenation with empty entries is deprecated. In a future version, this will no longer exclude empty items when determining the result dtype. To retain the old behavior, exclude the empty entries before the concat operation.
This is related to the this code snippet:
Additional info
In the recent pandas version handling of concatenation of empty dataframes changed, see pandas-dev/pandas#39122. This should be handled else wise to reflect the changes in pandas.