Skip to content

Commit f81f69f

Browse files
committed
more memoryview syntax in groupby
1 parent 85ca447 commit f81f69f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pandas/_libs/groupby.pyx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -511,9 +511,9 @@ def group_shift_indexer(
511511
@cython.wraparound(False)
512512
@cython.boundscheck(False)
513513
def group_fillna_indexer(
514-
ndarray[intp_t] out,
515-
ndarray[intp_t] labels,
516-
ndarray[uint8_t] mask,
514+
intp_t[::1] out,
515+
const intp_t[::1] labels,
516+
const uint8_t[:] mask,
517517
int64_t limit,
518518
bint compute_ffill,
519519
int ngroups,
@@ -1179,13 +1179,13 @@ def group_ohlc(
11791179
@cython.boundscheck(False)
11801180
@cython.wraparound(False)
11811181
def group_quantile(
1182-
ndarray[float64_t, ndim=2] out,
1182+
float64_t[:, ::1] out,
11831183
ndarray[numeric_t, ndim=1] values,
1184-
ndarray[intp_t] labels,
1184+
const intp_t[::1] labels,
11851185
const uint8_t[:] mask,
11861186
const float64_t[:] qs,
1187-
ndarray[int64_t] starts,
1188-
ndarray[int64_t] ends,
1187+
const int64_t[::1] starts,
1188+
const int64_t[::1] ends,
11891189
str interpolation,
11901190
uint8_t[:, ::1] result_mask,
11911191
bint is_datetimelike,

0 commit comments

Comments
 (0)