Method: Polars::StringNameSpace#zfill
- Defined in:
- lib/polars/string_name_space.rb
#zfill(length) ⇒ Series
Fills the string with zeroes.
Return a copy of the string left filled with ASCII '0' digits to make a string of length width.
A leading sign prefix ('+'/'-') is handled by inserting the padding after the
sign character rather than before. The original string is returned if width is
less than or equal to s.length.
999 1000 1001 |
# File 'lib/polars/string_name_space.rb', line 999 def zfill(length) super end |