Skip to content

Commit 8e3d4d0

Browse files
committed
Return Python integers
1 parent da08bb8 commit 8e3d4d0

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
@@ -194,7 +194,7 @@ cdef class IndexEngine:
194194
if count > 1:
195195
return indexer
196196
if count == 1:
197-
return found[0]
197+
return int(found[0])
198198

199199
raise KeyError(val)
200200

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 found[0]
77+
return int(found[0])
7878

7979
raise KeyError(val)
8080

0 commit comments

Comments
 (0)