Skip to content

Commit ff2f389

Browse files
committed
use right isnan
1 parent 78de263 commit ff2f389

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/_libs/window.pyx

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ cdef extern from "src/headers/cmath" namespace "std":
1818
double sqrt(double x) nogil
1919

2020
cdef extern from "numpy/npy_math.h":
21-
bint isnan(double) nogil
21+
bint npy_isnan(double) nogil
2222

2323
cimport util
2424
from util cimport numeric
@@ -657,7 +657,7 @@ cdef inline void add_var(const double val, double *nobs, double *mean_x,
657657
""" add a value from the var calc """
658658
cdef double delta
659659
# `isnan` instead of equality as fix for GH-21813
660-
if isnan(val):
660+
if npy_isnan(val):
661661
return
662662

663663
nobs[0] = nobs[0] + 1

0 commit comments

Comments
 (0)