From 220f0a523ec0910d56e3471ef18a2e6d0df4ed28 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Fri, 12 Apr 2024 16:49:24 -0700 Subject: [PATCH] Dont make .categories settable --- python/cudf/cudf/core/column/categorical.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/python/cudf/cudf/core/column/categorical.py b/python/cudf/cudf/core/column/categorical.py index e4620ee5bc4..e3e73035046 100644 --- a/python/cudf/cudf/core/column/categorical.py +++ b/python/cudf/cudf/core/column/categorical.py @@ -614,12 +614,6 @@ def children(self) -> Tuple[NumericalColumn]: def categories(self) -> ColumnBase: return self.dtype.categories._values - @categories.setter - def categories(self, value): - self._dtype = CategoricalDtype( - categories=value, ordered=self.dtype.ordered - ) - @property def codes(self) -> NumericalColumn: if self._codes is None: