Skip to content

Commit

Permalink
Add deprecation warning for Series.set_mask API (#8943)
Browse files Browse the repository at this point in the history
`Series.set_mask` is more of internal implementation detail that the end-users will not have knowledge about, hence deprecating the API.

Authors:
  - GALI PREM SAGAR (https://github.com/galipremsagar)

Approvers:
  - Vyas Ramasubramani (https://github.com/vyasr)

URL: #8943
  • Loading branch information
galipremsagar authored Aug 6, 2021
1 parent db63f61 commit 7816a3d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/cudf/cudf/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,11 @@ def set_mask(self, mask, null_count=None):
4 5
dtype: int64
"""
warnings.warn(
"Series.set_mask is deprecated and will be removed "
"in the future.",
DeprecationWarning,
)
col = self._column.set_mask(mask)
return self._copy_construct(data=col)

Expand Down

0 comments on commit 7816a3d

Please sign in to comment.