strip#

pylibcudf.strings.strip.strip(Column input, side_type side=side_type.BOTH, Scalar to_strip=None) Column#

Removes the specified characters from the beginning or end (or both) of each string.

For details, see cudf::strings::strip().

Parameters:
inputColumn

Strings column for this operation

sideSideType, default SideType.BOTH

Indicates characters are to be stripped from the beginning, end, or both of each string; Default is both

to_stripScalar

UTF-8 encoded characters to strip from each string; Default is empty string which indicates strip whitespace characters

Returns:
pylibcudf.Column

New strings column.