Skip to content

Removed unused argument from groupby cython impl #53478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pandas/_libs/groupby.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ cdef float64_t median_linear_mask(float64_t* a, int n, uint8_t* mask) noexcept n
a = tmp
n -= na_count

result = calc_median_linear(a, n, na_count)
result = calc_median_linear(a, n)

if na_count:
free(a)
Expand Down Expand Up @@ -128,15 +128,15 @@ cdef float64_t median_linear(float64_t* a, int n) noexcept nogil:
a = tmp
n -= na_count

result = calc_median_linear(a, n, na_count)
result = calc_median_linear(a, n)

if na_count:
free(a)

return result


cdef float64_t calc_median_linear(float64_t* a, int n, int na_count) noexcept nogil:
cdef float64_t calc_median_linear(float64_t* a, int n) noexcept nogil:
cdef:
float64_t result

Expand Down