featurebyte.Target.str.pad¶
pad(
width: int,
side: Literal["left", "right", "both"]="left",
fillchar: str=" "
) -> TargetDescription¶
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¶
- Target
A new Target object.