Skip to content

Commit e5e4ec0

Browse files
committed
Use more memoryview
1 parent d5f7451 commit e5e4ec0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/_libs/algos.pyx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,8 @@ def get_fill_indexer(const uint8_t[:] mask, limit=None):
566566
@cython.boundscheck(False)
567567
@cython.wraparound(False)
568568
def pad(
569-
ndarray[numeric_object_t] old,
570-
ndarray[numeric_object_t] new,
569+
const numeric_object_t[:] old,
570+
const numeric_object_t[:] new,
571571
limit=None
572572
) -> ndarray:
573573
# -> ndarray[intp_t, ndim=1]
@@ -691,8 +691,8 @@ def pad_2d_inplace(numeric_object_t[:, :] values, uint8_t[:, :] mask, limit=None
691691
@cython.boundscheck(False)
692692
@cython.wraparound(False)
693693
def backfill(
694-
ndarray[numeric_object_t] old,
695-
ndarray[numeric_object_t] new,
694+
const numeric_object_t[:] old,
695+
const numeric_object_t[:] new,
696696
limit=None
697697
) -> ndarray: # -> ndarray[intp_t, ndim=1]
698698
"""

0 commit comments

Comments
 (0)