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