From 76377b4f28b14277bf73243759f941aca85d7de1 Mon Sep 17 00:00:00 2001 From: Pietro Battiston Date: Fri, 11 May 2018 10:34:50 +0200 Subject: [PATCH] CLN: Revert "Return Python integers" (not needed after #20989) This reverts commit 8e3d4d08501dc83d4c2302686c8342e7448c78e5. --- pandas/_libs/index.pyx | 2 +- pandas/_libs/index_class_helper.pxi.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 741e5553141f7..205ab9002379d 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -195,7 +195,7 @@ cdef class IndexEngine: if count > 1: return indexer if count == 1: - return int(found[0]) + return found[0] raise KeyError(val) diff --git a/pandas/_libs/index_class_helper.pxi.in b/pandas/_libs/index_class_helper.pxi.in index 4ea35da0626f3..fc66c1c987d6e 100644 --- a/pandas/_libs/index_class_helper.pxi.in +++ b/pandas/_libs/index_class_helper.pxi.in @@ -74,7 +74,7 @@ cdef class {{name}}Engine(IndexEngine): if count > 1: return indexer if count == 1: - return int(found[0]) + return found[0] raise KeyError(val)