File tree 1 file changed +15
-16
lines changed
1 file changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -366,6 +366,21 @@ class ApplyTypeError(TypeError):
366
366
cdef class BaseOffset:
367
367
"""
368
368
Base class for DateOffset methods that are not overridden by subclasses.
369
+
370
+ Parameters
371
+ ----------
372
+ n : int
373
+ Number of multiples of the frequency.
374
+
375
+ normalize : bool
376
+ Whether the frequency can align with midnight.
377
+
378
+ Examples
379
+ --------
380
+ >>> pd.offsets.Hour(5).n
381
+ 5
382
+ >>> pd.offsets.Hour(5).normalize
383
+ False
369
384
"""
370
385
# ensure that reversed-ops with numpy scalars return NotImplemented
371
386
__array_priority__ = 1000
@@ -384,23 +399,7 @@ cdef class BaseOffset:
384
399
def __init__ (self , n = 1 , normalize = False ):
385
400
n = self ._validate_n(n)
386
401
self .n = n
387
- """
388
- Number of multiples of the frequency.
389
-
390
- Examples
391
- --------
392
- >>> pd.offsets.Hour(5).n
393
- 5
394
- """
395
402
self .normalize = normalize
396
- """
397
- Return boolean whether the frequency can align with midnight.
398
-
399
- Examples
400
- --------
401
- >>> pd.offsets.Hour(5).normalize
402
- False
403
- """
404
403
self ._cache = {}
405
404
406
405
def __eq__ (self , other ) -> bool:
You can’t perform that action at this time.
0 commit comments