Skip to content

Commit ed89701

Browse files
lars20070bednar
andauthored
fix: Pandas 3.0 warning for inplace method (influxdata#642)
* silence pandas 3.0 warning * add to changelog * docs: Update CHANGELOG.md --------- Co-authored-by: Jakub Bednář <jakub.bednar@gmail.com>
1 parent 293ed7f commit ed89701

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### Bug Fixes
44
1. [#636](https://github.com/influxdata/influxdb-client-python/pull/636): Handle missing data in data frames
5-
2. [#638](https://github.com/influxdata/influxdb-client-python/pull/638): Refactor DataFrame operations to avoid chained assignment and resolve FutureWarning in pandas, ensuring compatibility with pandas 3.0.
5+
2. [#638](https://github.com/influxdata/influxdb-client-python/pull/638), [#642](https://github.com/influxdata/influxdb-client-python/pull/642): Refactor DataFrame operations to avoid chained assignment and resolve FutureWarning in pandas, ensuring compatibility with pandas 3.0.
66

77
### Documentation
88
1. [#639](https://github.com/influxdata/influxdb-client-python/pull/639): Use Markdown for `README`

influxdb_client/client/write/dataframe_serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def __init__(self, data_frame, point_settings, precision=DEFAULT_WRITE_PRECISION
234234

235235
for k, v in dict(data_frame.dtypes).items():
236236
if k in data_frame_tag_columns:
237-
data_frame.replace({k: ''}, np.nan, inplace=True)
237+
data_frame = data_frame.replace({k: ''}, np.nan)
238238

239239
self.data_frame = data_frame
240240
self.f = f

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy