featurebyte.ViewColumn.str.pad¶
pad(
width: int,
side: Literal["left", "right", "both"]="left",
fillchar: str=" "
) -> FrozenSeriesDescription¶
Pads each string element up to the specified width.
Parameters¶
- width: int
Minimum width of resulting string. Additional characters will be filled withfillchar
. - side: Literal["left", "right", "both"]
default: "left"
Padding direction. - fillchar: str
default: " "
Character used to pad.
Returns¶
- FrozenSeries
A new Column or Feature object.
Examples¶
Pad the Title column to 10 characters: