padding#

pylibcudf.strings.padding.pad(Column input, size_type width, side_type side, unicode fill_char) Column#

Add padding to each string using a provided character.

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

Parameters:
inputColumn

Strings instance for this operation

widthint

The minimum number of characters for each string.

sideSideType

Where to place the padding characters.

fill_charstr

Single UTF-8 character to use for padding

Returns:
Column

New column with padded strings.

pylibcudf.strings.padding.zfill(Column input, size_type width) Column#

Add ‘0’ as padding to the left of each string.

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

Parameters:
inputColumn

Strings instance for this operation

widthint

The minimum number of characters for each string.

Returns:
Column

New column of strings.