Skip to content

Commit

Permalink
Deprecate 'inplace' argument for dask series renaming
Browse files Browse the repository at this point in the history
See issue dask#8082
  • Loading branch information
marcelned committed Sep 13, 2021
1 parent 9f0b00f commit 3f1ae6e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dask/dataframe/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3f1ae6e

Please sign in to comment.