From 7caa4d425d6f54151f95a38b53e5000e67415681 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Wed, 11 Sep 2024 11:35:48 -0700 Subject: [PATCH] Fix cudf compilation --- python/cudf/cudf/_lib/strings/char_types.pyx | 40 ++++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/python/cudf/cudf/_lib/strings/char_types.pyx b/python/cudf/cudf/_lib/strings/char_types.pyx index 6a9693371f8..30d426d2edc 100644 --- a/python/cudf/cudf/_lib/strings/char_types.pyx +++ b/python/cudf/cudf/_lib/strings/char_types.pyx @@ -16,11 +16,11 @@ def filter_alphanum(Column source_strings, object py_repl, bool keep=True): """ plc_column = plc.strings.char_types.filter_characters_of_type( source_strings.to_pylibcudf(mode="read"), - string_character_types.ALL_TYPES if keep - else string_character_types.ALPHANUM, + plc.strings.char_types.StringCharacterTypes.ALL_TYPES if keep + else plc.strings.char_types.StringCharacterTypes.ALPHANUM, py_repl.device_value.c_value, - string_character_types.ALPHANUM if keep - else string_character_types.ALL_TYPES + plc.strings.char_types.StringCharacterTypes.ALPHANUM if keep + else plc.strings.char_types.StringCharacterTypes.ALL_TYPES ) return Column.from_pylibcudf(plc_column) @@ -34,8 +34,8 @@ def is_decimal(Column source_strings): """ plc_column = plc.strings.char_types.all_characters_of_type( source_strings.to_pylibcudf(mode="read"), - string_character_types.DECIMAL, - string_character_types.ALL_TYPES + plc.strings.char_types.StringCharacterTypes.DECIMAL, + plc.strings.char_types.StringCharacterTypes.ALL_TYPES ) return Column.from_pylibcudf(plc_column) @@ -50,8 +50,8 @@ def is_alnum(Column source_strings): """ plc_column = plc.strings.char_types.all_characters_of_type( source_strings.to_pylibcudf(mode="read"), - string_character_types.ALPHANUM, - string_character_types.ALL_TYPES + plc.strings.char_types.StringCharacterTypes.ALPHANUM, + plc.strings.char_types.StringCharacterTypes.ALL_TYPES ) return Column.from_pylibcudf(plc_column) @@ -64,8 +64,8 @@ def is_alpha(Column source_strings): """ plc_column = plc.strings.char_types.all_characters_of_type( source_strings.to_pylibcudf(mode="read"), - string_character_types.ALPHA, - string_character_types.ALL_TYPES + plc.strings.char_types.StringCharacterTypes.ALPHA, + plc.strings.char_types.StringCharacterTypes.ALL_TYPES ) return Column.from_pylibcudf(plc_column) @@ -78,8 +78,8 @@ def is_digit(Column source_strings): """ plc_column = plc.strings.char_types.all_characters_of_type( source_strings.to_pylibcudf(mode="read"), - string_character_types.DIGIT, - string_character_types.ALL_TYPES + plc.strings.char_types.StringCharacterTypes.DIGIT, + plc.strings.char_types.StringCharacterTypes.ALL_TYPES ) return Column.from_pylibcudf(plc_column) @@ -93,8 +93,8 @@ def is_numeric(Column source_strings): """ plc_column = plc.strings.char_types.all_characters_of_type( source_strings.to_pylibcudf(mode="read"), - string_character_types.NUMERIC, - string_character_types.ALL_TYPES + plc.strings.char_types.StringCharacterTypes.NUMERIC, + plc.strings.char_types.StringCharacterTypes.ALL_TYPES ) return Column.from_pylibcudf(plc_column) @@ -107,8 +107,8 @@ def is_upper(Column source_strings): """ plc_column = plc.strings.char_types.all_characters_of_type( source_strings.to_pylibcudf(mode="read"), - string_character_types.UPPER, - string_character_types.CASE_TYPES + plc.strings.char_types.StringCharacterTypes.UPPER, + plc.strings.char_types.StringCharacterTypes.CASE_TYPES ) return Column.from_pylibcudf(plc_column) @@ -121,8 +121,8 @@ def is_lower(Column source_strings): """ plc_column = plc.strings.char_types.all_characters_of_type( source_strings.to_pylibcudf(mode="read"), - string_character_types.LOWER, - string_character_types.CASE_TYPES + plc.strings.char_types.StringCharacterTypes.LOWER, + plc.strings.char_types.StringCharacterTypes.CASE_TYPES ) return Column.from_pylibcudf(plc_column) @@ -135,7 +135,7 @@ def is_space(Column source_strings): """ plc_column = plc.strings.char_types.all_characters_of_type( source_strings.to_pylibcudf(mode="read"), - string_character_types.SPACE, - string_character_types.ALL_TYPES + plc.strings.char_types.StringCharacterTypes.SPACE, + plc.strings.char_types.StringCharacterTypes.ALL_TYPES ) return Column.from_pylibcudf(plc_column)