Skip to content

Commit 5203e41

Browse files
committed
Add a few more memoryviews
1 parent f81f69f commit 5203e41

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pandas/_libs/groupby.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,7 @@ cdef inline void _check_below_mincount(
13881388
uint8_t[:, ::1] result_mask,
13891389
Py_ssize_t ncounts,
13901390
Py_ssize_t K,
1391-
int64_t[:, ::1] nobs,
1391+
const int64_t[:, ::1] nobs,
13921392
int64_t min_count,
13931393
mincount_t[:, ::1] resx,
13941394
) noexcept:

pandas/_libs/hashing.pyx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import numpy as np
1111

1212
from numpy cimport (
1313
import_array,
14-
ndarray,
1514
uint8_t,
1615
uint64_t,
1716
)
@@ -23,7 +22,7 @@ from pandas._libs.util cimport is_nan
2322

2423
@cython.boundscheck(False)
2524
def hash_object_array(
26-
ndarray[object] arr, str key, str encoding="utf8"
25+
object[:] arr, str key, str encoding="utf8"
2726
) -> np.ndarray[np.uint64]:
2827
"""
2928
Parameters

0 commit comments

Comments
 (0)