We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1b00b8 commit de6aefeCopy full SHA for de6aefe
pandas/_libs/tslibs/period.pyx
@@ -1752,9 +1752,6 @@ cdef class _Period(PeriodMixin):
1752
def __cinit__(self, int64_t ordinal, BaseOffset freq):
1753
self.ordinal = ordinal
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
self._dtype = PeriodDtypeBase(freq._period_dtype_code, freq.n)
1759
1760
@classmethod
0 commit comments