Skip to content

Commit

Permalink
Fix cudf compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeschke authored and Matt711 committed Sep 25, 2024
1 parent 1abf1ef commit cbfff22
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions python/cudf/cudf/_lib/strings/char_types.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand All @@ -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)

0 comments on commit cbfff22

Please sign in to comment.