From 46672221687f14f708e8ac5aa5bd117b24e59c36 Mon Sep 17 00:00:00 2001 From: Stijn de Gooijer Date: Sat, 24 Feb 2024 00:24:11 +0100 Subject: [PATCH] Fix doctests --- py-polars/polars/expr/expr.py | 6 +++--- py-polars/polars/series/series.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/py-polars/polars/expr/expr.py b/py-polars/polars/expr/expr.py index 0302f0724d8e9..5ea946f93281d 100644 --- a/py-polars/polars/expr/expr.py +++ b/py-polars/polars/expr/expr.py @@ -8619,7 +8619,7 @@ def ewm_mean( Examples -------- >>> df = pl.DataFrame({"a": [1, 2, 3]}) - >>> df.select(pl.col("a").ewm_mean(com=1)) + >>> df.select(pl.col("a").ewm_mean(com=1, ignore_nulls=False)) shape: (3, 1) ┌──────────┐ │ a │ @@ -8721,7 +8721,7 @@ def ewm_std( Examples -------- >>> df = pl.DataFrame({"a": [1, 2, 3]}) - >>> df.select(pl.col("a").ewm_std(com=1)) + >>> df.select(pl.col("a").ewm_std(com=1, ignore_nulls=False)) shape: (3, 1) ┌──────────┐ │ a │ @@ -8823,7 +8823,7 @@ def ewm_var( Examples -------- >>> df = pl.DataFrame({"a": [1, 2, 3]}) - >>> df.select(pl.col("a").ewm_var(com=1)) + >>> df.select(pl.col("a").ewm_var(com=1, ignore_nulls=False)) shape: (3, 1) ┌──────────┐ │ a │ diff --git a/py-polars/polars/series/series.py b/py-polars/polars/series/series.py index 9d8ee08e03cab..0f9ff38d0bd33 100644 --- a/py-polars/polars/series/series.py +++ b/py-polars/polars/series/series.py @@ -6830,7 +6830,7 @@ def ewm_mean( Examples -------- >>> s = pl.Series([1, 2, 3]) - >>> s.ewm_mean(com=1) + >>> s.ewm_mean(com=1, ignore_nulls=False) shape: (3,) Series: '' [f64] [ @@ -6915,7 +6915,7 @@ def ewm_std( Examples -------- >>> s = pl.Series("a", [1, 2, 3]) - >>> s.ewm_std(com=1) + >>> s.ewm_std(com=1, ignore_nulls=False) shape: (3,) Series: 'a' [f64] [ @@ -7025,7 +7025,7 @@ def extend_constant(self, value: IntoExpr, n: int | IntoExprColumn) -> Series: Examples -------- >>> s = pl.Series([1, 2, 3]) - >>> s.extend_constant(99, n=2) + >>> s.extend_constant(99, n=2, ignore_nulls=False) shape: (5,) Series: '' [i64] [