From 27e69b5c45e2048b9111f09f5c84588069bacb29 Mon Sep 17 00:00:00 2001 From: Marco Edward Gorelli Date: Fri, 19 Apr 2024 10:38:48 +0100 Subject: [PATCH] docs(python): Remove incorrect "1i (1 index count)" from some docs methods (#15750) --- py-polars/polars/dataframe/frame.py | 1 - py-polars/polars/expr/datetime.py | 1 - py-polars/polars/lazyframe/frame.py | 1 - py-polars/polars/series/datetime.py | 1 - 4 files changed, 4 deletions(-) diff --git a/py-polars/polars/dataframe/frame.py b/py-polars/polars/dataframe/frame.py index 108276a6d3c2..962368a7eff9 100644 --- a/py-polars/polars/dataframe/frame.py +++ b/py-polars/polars/dataframe/frame.py @@ -5648,7 +5648,6 @@ def join_asof( - 1mo (1 calendar month) - 1q (1 calendar quarter) - 1y (1 calendar year) - - 1i (1 index count) Or combine them: "3d12h4m25s" # 3 days, 12 hours, 4 minutes, and 25 seconds diff --git a/py-polars/polars/expr/datetime.py b/py-polars/polars/expr/datetime.py index 4400fd21ef1b..dd2306a7a551 100644 --- a/py-polars/polars/expr/datetime.py +++ b/py-polars/polars/expr/datetime.py @@ -2154,7 +2154,6 @@ def offset_by(self, by: str | Expr) -> Expr: - 1mo (1 calendar month) - 1q (1 calendar quarter) - 1y (1 calendar year) - - 1i (1 index count) By "calendar day", we mean the corresponding time on the next day (which may not be 24 hours, due to daylight savings). Similarly for "calendar week", diff --git a/py-polars/polars/lazyframe/frame.py b/py-polars/polars/lazyframe/frame.py index 61f92796ae78..a1fd7067b027 100644 --- a/py-polars/polars/lazyframe/frame.py +++ b/py-polars/polars/lazyframe/frame.py @@ -3587,7 +3587,6 @@ def join_asof( - 1mo (1 calendar month) - 1q (1 calendar quarter) - 1y (1 calendar year) - - 1i (1 index count) Or combine them: "3d12h4m25s" # 3 days, 12 hours, 4 minutes, and 25 seconds diff --git a/py-polars/polars/series/datetime.py b/py-polars/polars/series/datetime.py index ccae74ad7037..b6690ce55783 100644 --- a/py-polars/polars/series/datetime.py +++ b/py-polars/polars/series/datetime.py @@ -1605,7 +1605,6 @@ def offset_by(self, by: str | Expr) -> Series: - 1mo (1 calendar month) - 1q (1 calendar quarter) - 1y (1 calendar year) - - 1i (1 index count) By "calendar day", we mean the corresponding time on the next day (which may not be 24 hours, due to daylight savings). Similarly for