From 22a97bfa94263b9bb5895551d2da0664b6ae9613 Mon Sep 17 00:00:00 2001 From: liufeimath Date: Wed, 28 Aug 2024 03:01:32 -0400 Subject: [PATCH] docs(python): Fix incorrect comments in `group_by_dynamic` (#18415) --- py-polars/polars/dataframe/frame.py | 2 +- py-polars/polars/lazyframe/frame.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/py-polars/polars/dataframe/frame.py b/py-polars/polars/dataframe/frame.py index 8a550f9e5904..950aebc4331f 100644 --- a/py-polars/polars/dataframe/frame.py +++ b/py-polars/polars/dataframe/frame.py @@ -6326,7 +6326,7 @@ def group_by_dynamic( │ 2021-12-16 03:00:00 ┆ 6 │ └─────────────────────┴─────┘ - Group by windows of 1 hour starting at 2021-12-16 00:00:00. + Group by windows of 1 hour. >>> df.group_by_dynamic("time", every="1h", closed="right").agg(pl.col("n")) shape: (4, 2) diff --git a/py-polars/polars/lazyframe/frame.py b/py-polars/polars/lazyframe/frame.py index ff4ab963faaf..dead2681da0b 100644 --- a/py-polars/polars/lazyframe/frame.py +++ b/py-polars/polars/lazyframe/frame.py @@ -3823,7 +3823,7 @@ def group_by_dynamic( │ 2021-12-16 03:00:00 ┆ 6 │ └─────────────────────┴─────┘ - Group by windows of 1 hour starting at 2021-12-16 00:00:00. + Group by windows of 1 hour. >>> lf.group_by_dynamic("time", every="1h", closed="right").agg( ... pl.col("n")