xarray.core.accessor_str.StringAccessor.ljust

StringAccessor.ljust(width, fillchar=' ')

Pad right side of each string in the array.

Parameters
  • width (int) – Minimum width of resulting string; additional characters will be filled with fillchar

  • fillchar (str, default: " ") – Additional character for filling, default is whitespace

Returns

filled (same type as values)