Pad right 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; a
(
self,
width: int | Any,
fillchar: str | bytes | Any = " ",
)
| 1371 | return self._padder(func=func, width=width, fillchar=fillchar) |
| 1372 | |
| 1373 | def ljust( |
| 1374 | self, |
| 1375 | width: int | Any, |
| 1376 | fillchar: str | bytes | Any = " ", |
| 1377 | ) -> T_DataArray: |
| 1378 | """ |
| 1379 | Pad right side of each string in the array. |
| 1380 | |
| 1381 | If `width` or 'fillchar` is array-like, they are broadcast |
| 1382 | against the array and applied elementwise. |
| 1383 | |
| 1384 | Parameters |
| 1385 | ---------- |
| 1386 | width : int or array-like of int |
| 1387 | Minimum width of resulting string; additional characters will be |
| 1388 | filled with ``fillchar``. If array-like, it is broadcast. |
| 1389 | fillchar : str or array-like of str, default: " " |
| 1390 | Additional character for filling, default is a space. |
| 1391 | If array-like, it is broadcast. |
| 1392 | |
| 1393 | Returns |
| 1394 | ------- |
| 1395 | filled : same type as values |
| 1396 | """ |
| 1397 | func = self._obj.dtype.type.ljust |
| 1398 | return self._padder(func=func, width=width, fillchar=fillchar) |
| 1399 | |
| 1400 | def rjust( |
| 1401 | self, |