Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove build_categorical_column in favor of CategoricalColumn constructor #16617

Merged
13 changes: 0 additions & 13 deletions python/cudf/cudf/core/_internals/where.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,19 +106,6 @@ def _check_and_cast_columns_with_other(
return _normalize_categorical(source_col.astype(common_dtype), other)


def _make_categorical_like(result, column):
if isinstance(column, cudf.core.column.CategoricalColumn):
result = cudf.core.column.build_categorical_column(
categories=column.categories,
codes=result,
mask=result.base_mask,
size=result.size,
offset=result.offset,
ordered=column.ordered,
)
return result


def _can_cast(from_dtype, to_dtype):
"""
Utility function to determine if we can cast
Expand Down
1 change: 0 additions & 1 deletion python/cudf/cudf/core/column/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from cudf.core.column.column import (
ColumnBase,
as_column,
build_categorical_column,
build_column,
column_empty,
column_empty_like,
Expand Down
Loading
Loading