Skip to content

Commit

Permalink
Dont make .categories settable
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeschke committed Apr 12, 2024
1 parent 1359217 commit 220f0a5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions python/cudf/cudf/core/column/categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 220f0a5

Please sign in to comment.