There was an error while loading. Please reload this page.
1 parent 4f89c26 commit 0d46144Copy full SHA for 0d46144
pandas/_libs/index.pyx
@@ -479,7 +479,6 @@ cdef class PeriodEngine(Int64Engine):
479
return scalar.value
480
if isinstance(scalar, Period):
481
# NB: we assume that we have the correct freq here.
482
- # TODO: potential optimize by checking for _Period?
483
return scalar.ordinal
484
raise TypeError(scalar)
485
0 commit comments