diff --git a/python/cudf/cudf/core/series.py b/python/cudf/cudf/core/series.py index 4ad2c325eeb..594f9fc42d0 100644 --- a/python/cudf/cudf/core/series.py +++ b/python/cudf/cudf/core/series.py @@ -3637,6 +3637,12 @@ def label_encoding(self, cats, dtype=None, na_sentinel=-1): dtype: int8 """ + warnings.warn( + "Series.label_encoding is deprecated and will be removed in the future.\ + Consider using cuML's LabelEncoder instead", + DeprecationWarning, + ) + def _return_sentinel_series(): return Series( cudf.core.column.full(