Skip to content

Commit

Permalink
Add note
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Oct 25, 2023
1 parent 9cedacc commit 155bb84
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions py-polars/polars/expr/string.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,11 @@ def zfill(self, length: int) -> Expr:
--------
pad_start
Notes
-----
This method is intended for padding numeric strings. If your data contains
non-ASCII characters, use :func:`pad_start` instead.
Examples
--------
>>> df = pl.DataFrame({"a": [-1, 123, 999999, None]})
Expand Down
5 changes: 5 additions & 0 deletions py-polars/polars/series/string.py
Original file line number Diff line number Diff line change
Expand Up @@ -1355,6 +1355,11 @@ def zfill(self, length: int) -> Series:
--------
pad_start
Notes
-----
This method is intended for padding numeric strings. If your data contains
non-ASCII characters, use :func:`pad_start` instead.
Examples
--------
>>> s = pl.Series([-1, 123, 999999, None])
Expand Down

0 comments on commit 155bb84

Please sign in to comment.