xarray.DataArray.str.rjust#
- DataArray.str.rjust(width, fillchar=' ')[source]#
Pad left side of each string in the array.
If width or ‘fillchar` is array-like, they are broadcast against the array and applied elementwise.
- Parameters:
width (
intor array-like ofint) – Minimum width of resulting string; additional characters will be filled withfillchar. If array-like, it is broadcast.fillchar (
stror array-like ofstr, default:" ") – Additional character for filling, default is a space. If array-like, it is broadcast.
- Returns:
filled (
same type as values)