File tree 1 file changed +2
-5
lines changed
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):
1752
1752
def __cinit__ (self , int64_t ordinal , BaseOffset freq ):
1753
1753
self .ordinal = ordinal
1754
1754
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)
1758
1755
self ._dtype = PeriodDtypeBase(freq._period_dtype_code, freq.n)
1759
1756
1760
1757
@classmethod
@@ -1913,7 +1910,7 @@ cdef class _Period(PeriodMixin):
1913
1910
1914
1911
Parameters
1915
1912
----------
1916
- freq : str , BaseOffset
1913
+ freq : str , DateOffset
1917
1914
The target frequency to convert the Period object to.
1918
1915
If a string is provided ,
1919
1916
it must be a valid :ref:`period alias <timeseries.period_aliases>`.
@@ -2599,7 +2596,7 @@ cdef class _Period(PeriodMixin):
2599
2596
2600
2597
Parameters
2601
2598
----------
2602
- freq : str, BaseOffset
2599
+ freq : str, DateOffset
2603
2600
Frequency to use for the returned period.
2604
2601
2605
2602
See Also
You can’t perform that action at this time.
0 commit comments