From 367b82cdb48ae0098202f7baf341ddec89fba7c8 Mon Sep 17 00:00:00 2001 From: Max Tilley Date: Wed, 6 Nov 2024 20:30:37 +0000 Subject: [PATCH] Alter doc for round_sig_figs to make behaviour clearer --- py-polars/polars/series/series.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py-polars/polars/series/series.py b/py-polars/polars/series/series.py index 934cad33d1d7..d86c9d29cd0f 100644 --- a/py-polars/polars/series/series.py +++ b/py-polars/polars/series/series.py @@ -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 ] """