File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -1752,9 +1752,6 @@ cdef class _Period(PeriodMixin):
17521752 def __cinit__ (self , int64_t ordinal , BaseOffset freq ):
17531753 self .ordinal = ordinal
17541754 self .freq = freq
1755- # Note: this is more performant than PeriodDtype.from_date_offset(freq)
1756- # because from_date_offset cannot be made a cdef method (until cython
1757- # supported cdef classmethods)
17581755 self ._dtype = PeriodDtypeBase(freq._period_dtype_code, freq.n)
17591756
17601757 @classmethod
@@ -1913,7 +1910,7 @@ cdef class _Period(PeriodMixin):
19131910
19141911 Parameters
19151912 ----------
1916- freq : str , BaseOffset
1913+ freq : str , DateOffset
19171914 The target frequency to convert the Period object to.
19181915 If a string is provided ,
19191916 it must be a valid :ref:`period alias <timeseries.period_aliases>`.
@@ -2599,7 +2596,7 @@ cdef class _Period(PeriodMixin):
25992596
26002597 Parameters
26012598 ----------
2602- freq : str, BaseOffset
2599+ freq : str, DateOffset
26032600 Frequency to use for the returned period.
26042601
26052602 See Also
You can’t perform that action at this time.
0 commit comments