From ef4bc31ada6efc6e82b724946bf437247c1ff067 Mon Sep 17 00:00:00 2001 From: Pietro Battiston Date: Thu, 19 Feb 2015 22:27:27 +0100 Subject: [PATCH] BUG: declare and use correctly self.unique_check --- pandas/index.pyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/index.pyx b/pandas/index.pyx index 9be7e7404f3fe..bed385a9ad6aa 100644 --- a/pandas/index.pyx +++ b/pandas/index.pyx @@ -87,6 +87,7 @@ cdef class IndexEngine: self.initialized = 0 self.monotonic_check = 0 + self.unique_check = 0 self.unique = 0 self.monotonic_inc = 0 @@ -269,7 +270,7 @@ cdef class IndexEngine: if len(self.mapping) == len(values): self.unique = 1 - self.unique_check = 1 + self.unique_check = 1 self.initialized = 1