MCPcopy Index your code
hub / github.com/pydata/xarray / rjust

Method rjust

xarray/core/accessor_str.py:1400–1425  ·  view source on GitHub ↗

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 : int or array-like of int Minimum width of resulting string; ad

(
        self,
        width: int | Any,
        fillchar: str | bytes | Any = " ",
    )

Source from the content-addressed store, hash-verified

1398 return self._padder(func=func, width=width, fillchar=fillchar)
1399
1400 def rjust(
1401 self,
1402 width: int | Any,
1403 fillchar: str | bytes | Any = " ",
1404 ) -> T_DataArray:
1405 """
1406 Pad left side of each string in the array.
1407
1408 If `width` or 'fillchar` is array-like, they are broadcast
1409 against the array and applied elementwise.
1410
1411 Parameters
1412 ----------
1413 width : int or array-like of int
1414 Minimum width of resulting string; additional characters will be
1415 filled with ``fillchar``. If array-like, it is broadcast.
1416 fillchar : str or array-like of str, default: " "
1417 Additional character for filling, default is a space.
1418 If array-like, it is broadcast.
1419
1420 Returns
1421 -------
1422 filled : same type as values
1423 """
1424 func = self._obj.dtype.type.rjust
1425 return self._padder(func=func, width=width, fillchar=fillchar)
1426
1427 def zfill(self, width: int | Any) -> T_DataArray:
1428 """

Calls 1

_padderMethod · 0.95