Skip to content

Commit 6f5f1ba

Browse files
committed
define __init__ for Day. remove Tick test doc
1 parent bbdf869 commit 6f5f1ba

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

pandas/_libs/tslibs/offsets.pyx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,9 +1007,6 @@ cdef class SingleConstructorOffset(BaseOffset):
10071007
# Tick Offsets
10081008

10091009
cdef class Tick(SingleConstructorOffset):
1010-
"""
1011-
Represents ticks
1012-
"""
10131010
_adjust_dst = False
10141011
_prefix = "undefined"
10151012
_attributes = tuple(["n", "normalize"])
@@ -1185,10 +1182,7 @@ cdef class Day(Tick):
11851182
Parameters
11861183
----------
11871184
n : int
1188-
Number of multiples of the frequency.
1189-
1190-
normalize: bool
1191-
Must be `False`
1185+
Number of multiples of the frequency (default 1).
11921186
11931187
Attributes
11941188
----------
@@ -1221,6 +1215,9 @@ cdef class Day(Tick):
12211215
_period_dtype_code = PeriodDtypeCode.D
12221216
_creso = NPY_DATETIMEUNIT.NPY_FR_D
12231217

1218+
def __init__(self, n=1, normalize=False):
1219+
super().__init__(n, normalize)
1220+
print("in Day init")
12241221

12251222
cdef class Hour(Tick):
12261223
"""

0 commit comments

Comments
 (0)