Skip to content

Commit 74befc3

Browse files
authored
fix: use pandas.concat() instead of deprecated DataFrame.append() (#407)
1 parent 52a9d02 commit 74befc3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ This release introduces a support for new version of InfluxDB OSS API definition
3535

3636
### Bug Fixes
3737
1. [#408](https://github.com/influxdata/influxdb-client-python/pull/408): Improve error message when the client cannot find organization by name
38+
1. [#407](https://github.com/influxdata/influxdb-client-python/pull/407): Use `pandas.concat()` instead of deprecated `DataFrame.append()` [DataFrame]
3839

3940
## 1.25.0 [2022-01-20]
4041

influxdb_client/client/flux_csv_parser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def _prepare_data_frame(self):
187187
_temp_df = _temp_df.set_index(self._data_frame_index)
188188

189189
# Append data
190-
return self._data_frame.astype(_temp_df.dtypes).append(_temp_df)
190+
return pd.concat([self._data_frame.astype(_temp_df.dtypes), _temp_df])
191191

192192
def parse_record(self, table_index, table, csv):
193193
"""Parse one record."""

0 commit comments

Comments
 (0)