From 7816a3d3714b009ec0bf00f48acb477139e30373 Mon Sep 17 00:00:00 2001 From: GALI PREM SAGAR Date: Thu, 5 Aug 2021 21:17:56 -0500 Subject: [PATCH] Add deprecation warning for `Series.set_mask` API (#8943) `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: https://github.com/rapidsai/cudf/pull/8943 --- python/cudf/cudf/core/series.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/cudf/cudf/core/series.py b/python/cudf/cudf/core/series.py index 413fcefc2bc..f786853b3f4 100644 --- a/python/cudf/cudf/core/series.py +++ b/python/cudf/cudf/core/series.py @@ -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)