Skip to content

Commit

Permalink
Fix doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Feb 23, 2024
1 parent 398747b commit 4667222
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions py-polars/polars/expr/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 │
Expand Down Expand Up @@ -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 │
Expand Down Expand Up @@ -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 │
Expand Down
6 changes: 3 additions & 3 deletions py-polars/polars/series/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
[
Expand Down Expand Up @@ -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]
[
Expand Down Expand Up @@ -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]
[
Expand Down

0 comments on commit 4667222

Please sign in to comment.