From aff27c759226ba362654f7c8d37baf85bde4ea43 Mon Sep 17 00:00:00 2001 From: Anh Ho Date: Thu, 6 Jun 2024 11:39:36 -0500 Subject: [PATCH 1/2] Added Attributes for Tick class in offsets.pyx --- pandas/_libs/tslibs/offsets.pyx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index f9d63065493c3..5cbe85c6561e3 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -934,6 +934,20 @@ cdef class SingleConstructorOffset(BaseOffset): # Tick Offsets cdef class Tick(SingleConstructorOffset): + """ + Offset ``n`` ticks. + + Attributes + ---------- + n : int, default 1 + The number of ticks represented. + normalize : bool, default False + Normalize start/end dates to midnight before generating date range. + + See Also + -------- + :class:`~pandas.tseries.offsets.DateOffset` : Standard kind of date increment. + _adjust_dst = False _prefix = "undefined" _attributes = tuple(["n", "normalize"]) From 6347c1ba2caed135dc05697139a3e9445e692061 Mon Sep 17 00:00:00 2001 From: Anh-HoDac <107903611+Anh-HoDac@users.noreply.github.com> Date: Mon, 17 Jun 2024 22:11:33 -0500 Subject: [PATCH 2/2] Update pandas/_libs/tslibs/offsets.pyx Co-authored-by: Abdulaziz Aloqeely <52792999+Aloqeely@users.noreply.github.com> --- pandas/_libs/tslibs/offsets.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 5cbe85c6561e3..d37707cd1a7cd 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -947,7 +947,7 @@ cdef class Tick(SingleConstructorOffset): See Also -------- :class:`~pandas.tseries.offsets.DateOffset` : Standard kind of date increment. - + """ _adjust_dst = False _prefix = "undefined" _attributes = tuple(["n", "normalize"])