Skip to content

Commit

Permalink
docs: alter doc for round_sig_figs to make behaviour clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Tilley committed Nov 6, 2024
1 parent 1ae9d24 commit c6265ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py-polars/polars/series/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -4967,14 +4967,14 @@ def round_sig_figs(self, digits: int) -> Series:
Examples
--------
>>> s = pl.Series([0.01234, 3.333, 1234.0])
>>> s = pl.Series([0.01234, 3.333, 3450.0])
>>> s.round_sig_figs(2)
shape: (3,)
Series: '' [f64]
[
0.012
3.3
1200.0
3500.0
]
"""

Expand Down

0 comments on commit c6265ef

Please sign in to comment.