Skip to content

Commit 0d46144

Browse files
authored
PERF: Using _Period for optimization (pandas-dev#32973)
1 parent 4f89c26 commit 0d46144

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pandas/_libs/index.pyx

-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,6 @@ cdef class PeriodEngine(Int64Engine):
479479
return scalar.value
480480
if isinstance(scalar, Period):
481481
# NB: we assume that we have the correct freq here.
482-
# TODO: potential optimize by checking for _Period?
483482
return scalar.ordinal
484483
raise TypeError(scalar)
485484

0 commit comments

Comments
 (0)