Skip to content

Commit 79eacb7

Browse files
Ned WesternNedJWestern
authored andcommitted
docs: Add See Also sections for datetime docstrings
1 parent 09d07ed commit 79eacb7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

py-polars/src/polars/series/datetime.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1917,6 +1917,10 @@ def truncate(self, every: str | dt.timedelta | IntoExprColumn) -> Series:
19171917
Series
19181918
Series of data type :class:`Date` or :class:`Datetime`.
19191919
1920+
See Also
1921+
--------
1922+
Series.dt.round : Map to the nearest bucket.
1923+
19201924
Examples
19211925
--------
19221926
>>> from datetime import timedelta, datetime
@@ -2030,6 +2034,10 @@ def round(self, every: str | dt.timedelta | IntoExprColumn) -> Series:
20302034
not be 24 hours, due to daylight savings). Similarly for "calendar week",
20312035
"calendar month", "calendar quarter", and "calendar year".
20322036
2037+
See Also
2038+
--------
2039+
Series.dt.truncate : Map to start of the bucket.
2040+
20332041
Examples
20342042
--------
20352043
>>> from datetime import timedelta, datetime

0 commit comments

Comments
 (0)