From 3f1ae6e1e763369728a39aab1a21d813948345d9 Mon Sep 17 00:00:00 2001 From: Marcel Date: Mon, 13 Sep 2021 18:01:39 +0200 Subject: [PATCH] Deprecate 'inplace' argument for dask series renaming See issue #8082 --- dask/dataframe/core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dask/dataframe/core.py b/dask/dataframe/core.py index df6f64c5f02..72b1b5137fa 100644 --- a/dask/dataframe/core.py +++ b/dask/dataframe/core.py @@ -3212,6 +3212,9 @@ def rename(self, index=None, inplace=False, sorted_index=False): and not is_dict_like(index) and not isinstance(index, dd.Series) ): + + if inplace: + warnings.warn("'inplace' argument for dask series will be removed in future versions", PendingDeprecationWarning) res = self if inplace else self.copy() res.name = index else: