ibis.expr.api.StringValue.lpad

StringValue.lpad(length, pad=' ')

Returns string of given length by truncating (on right) or padding (on left) original string

Parameters:

length : int

pad : string, default is ‘ ‘

Returns:

padded : string

Examples

table.strings.lpad(5, ‘-‘) ‘a’ becomes ‘—-a’ ‘abcdefg’ becomes ‘abcde’