File tree 1 file changed +10
-9
lines changed
1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -382,25 +382,26 @@ cdef class BaseOffset:
382
382
# dict _cache
383
383
384
384
def __init__ (self , n = 1 , normalize = False ):
385
- n = self ._validate_n(n)
386
- self .n = n
387
385
"""
388
- Number of multiples of the frequency.
386
+ Parameters:
387
+ -----------
388
+ n : int
389
+ Number of multiples of the frequency.
390
+
391
+ normalize : boolean
392
+ Whether the frequency can align with midnight.
389
393
390
394
Examples
391
395
--------
392
396
>>> pd.offsets.Hour(5).n
393
397
5
394
- """
395
- self .normalize = normalize
396
- """
397
- Return boolean whether the frequency can align with midnight.
398
398
399
- Examples
400
- --------
401
399
>>> pd.offsets.Hour(5).normalize
402
400
False
403
401
"""
402
+ n = self ._validate_n(n)
403
+ self .n = n
404
+ self .normalize = normalize
404
405
self ._cache = {}
405
406
406
407
def __eq__ (self , other ) -> bool:
You can’t perform that action at this time.
0 commit comments