Skip to content

Commit 475e99d

Browse files
committed
Accept constant memoryviews in HashTable.lookup
1 parent e84cf2a commit 475e99d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/_libs/hashtable_class_helper.pxi.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ cdef class {{name}}HashTable(HashTable):
379379
self.table.vals[k] = i
380380

381381
@cython.boundscheck(False)
382-
def lookup(self, {{dtype}}_t[:] values):
382+
def lookup(self, const {{dtype}}_t[:] values):
383383
cdef:
384384
Py_ssize_t i, n = len(values)
385385
int ret = 0

0 commit comments

Comments
 (0)