We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cd3c25b + 0933ba3 commit 57d9fadCopy full SHA for 57d9fad
pandas/core/index.py
@@ -1332,11 +1332,6 @@ def inferred_type(self):
1332
def _constructor(self):
1333
return Int64Index
1334
1335
- @cache_readonly
1336
- def _engine(self):
1337
- # property, for now, slow to look up
1338
- return self._engine_type(lambda: com._ensure_int64(self.values), len(self))
1339
-
1340
@property
1341
def asi8(self):
1342
# do not cache or you'll create a memory leak
pandas/index.pyx
@@ -272,6 +272,9 @@ cdef class IndexEngine:
272
273
cdef class Int64Engine(IndexEngine):
274
275
+ cdef _get_index_values(self):
276
+ return algos.ensure_int64(self.vgetter())
277
+
278
cdef _make_hash_table(self, n):
279
return _hash.Int64HashTable(n)
280
0 commit comments