Back to Numerical Arrays (NumPy)
np.ljust
Return element-wise left-justified string of given width.
Syntax
np.ljust(a, width, fillchar?)
Description
Return element-wise left-justified string of given width.
Parameters
| Name | Description |
|---|---|
| a | - Input string array |
| width | - Total width of output string |
| fillchar(optional) | - Padding character (default space) |
Returns
NDArray