Skip to content

Commit

Permalink
Ensure tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeschke committed Sep 18, 2024
1 parent 25f5a26 commit 47ce3ce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
9 changes: 1 addition & 8 deletions python/cudf/cudf/_lib/strings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,7 @@
from cudf._lib.strings.find_multiple import find_multiple
from cudf._lib.strings.findall import findall
from cudf._lib.strings.json import GetJsonObjectOptions, get_json_object
from cudf._lib.strings.padding import (
SideType,
center,
ljust,
pad,
rjust,
zfill,
)
from cudf._lib.strings.padding import center, ljust, pad, rjust, zfill
from cudf._lib.strings.repeat import repeat_scalar, repeat_sequence
from cudf._lib.strings.replace import (
insert,
Expand Down
4 changes: 3 additions & 1 deletion python/cudf/cudf/_lib/strings/padding.pyx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright (c) 2020-2024, NVIDIA CORPORATION.
from cudf.core.buffer import acquire_spill_lock

from pylibcudf.libcudf.types cimport size_type

from cudf._lib.column cimport Column

import pylibcudf as plc
Expand All @@ -20,8 +22,8 @@ def pad(Column source_strings,
plc_result = plc.strings.padding.pad(
source_strings.to_pylibcudf(mode="read"),
width,
side,
fill_char,
side
)
return Column.from_pylibcudf(plc_result)

Expand Down
6 changes: 3 additions & 3 deletions python/cudf/cudf/_lib/strings/strip.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def strip(Column source_strings,
The set of characters need be stripped from left and right side
can be specified by `py_repl`.
"""
plc_result = plc.string.strip.strip(
plc_result = plc.strings.strip.strip(
source_strings.to_pylibcudf(mode="read"),
plc.strings.side_type.SideType.BOTH,
py_repl.device_value.c_value,
Expand All @@ -31,7 +31,7 @@ def lstrip(Column source_strings,
The set of characters need be stripped from left side can
be specified by `py_repl`.
"""
plc_result = plc.string.strip.strip(
plc_result = plc.strings.strip.strip(
source_strings.to_pylibcudf(mode="read"),
plc.strings.side_type.SideType.LEFT,
py_repl.device_value.c_value,
Expand All @@ -47,7 +47,7 @@ def rstrip(Column source_strings,
The set of characters need be stripped from right side can
be specified by `py_repl`.
"""
plc_result = plc.string.strip.strip(
plc_result = plc.strings.strip.strip(
source_strings.to_pylibcudf(mode="read"),
plc.strings.side_type.SideType.RIGHT,
py_repl.device_value.c_value,
Expand Down

0 comments on commit 47ce3ce

Please sign in to comment.