Skip to content

Commit 76377b4

Browse files
committed
CLN: Revert "Return Python integers" (not needed after pandas-dev#20989)
This reverts commit 8e3d4d0.
1 parent 17a0ca1 commit 76377b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/_libs/index.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ cdef class IndexEngine:
195195
if count > 1:
196196
return indexer
197197
if count == 1:
198-
return int(found[0])
198+
return found[0]
199199

200200
raise KeyError(val)
201201

pandas/_libs/index_class_helper.pxi.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ cdef class {{name}}Engine(IndexEngine):
7474
if count > 1:
7575
return indexer
7676
if count == 1:
77-
return int(found[0])
77+
return found[0]
7878

7979
raise KeyError(val)
8080

0 commit comments

Comments
 (0)