Skip to content

Commit

Permalink
Add deprecation warning for Series.set_mask API (rapidsai#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: rapidsai#8943
  • Loading branch information
galipremsagar authored and shwina committed Aug 9, 2021
1 parent d2ba961 commit 44ae850
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 44ae850

Please sign in to comment.