From 10fd62ee87a2bdb1dee95a238d54560fb3d3c2f6 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Mon, 16 Dec 2024 14:51:11 -0800 Subject: [PATCH 1/2] Update python/cudf/cudf/core/column/categorical.py Co-authored-by: Bradley Dice --- python/cudf/cudf/core/column/categorical.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/cudf/cudf/core/column/categorical.py b/python/cudf/cudf/core/column/categorical.py index 889d6dacf7b..0c4d1ec90e0 100644 --- a/python/cudf/cudf/core/column/categorical.py +++ b/python/cudf/cudf/core/column/categorical.py @@ -1100,7 +1100,7 @@ def as_categorical_column(self, dtype: Dtype) -> Self: ) and isinstance(dtype.categories.dtype, cudf.IntervalDtype): codes = self.codes else: - # Otherwise If both categories are of different Column types, + # Otherwise if both categories are of different Column types, # return a column full of Nulls. codes = cast( cudf.core.column.numerical.NumericalColumn, From c9b8c73ba247473108ad4149dc1a99a82e59db64 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Mon, 16 Dec 2024 14:51:17 -0800 Subject: [PATCH 2/2] Update python/cudf/cudf/core/column/categorical.py Co-authored-by: Bradley Dice --- python/cudf/cudf/core/column/categorical.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/cudf/cudf/core/column/categorical.py b/python/cudf/cudf/core/column/categorical.py index 0c4d1ec90e0..d9b54008e85 100644 --- a/python/cudf/cudf/core/column/categorical.py +++ b/python/cudf/cudf/core/column/categorical.py @@ -1101,7 +1101,7 @@ def as_categorical_column(self, dtype: Dtype) -> Self: codes = self.codes else: # Otherwise if both categories are of different Column types, - # return a column full of Nulls. + # return a column full of nulls. codes = cast( cudf.core.column.numerical.NumericalColumn, column.as_column(