Skip to content

Commit 78de263

Browse files
committed
use numpy compat isnan
1 parent 02779e3 commit 78de263

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/_libs/window.pyx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ from cython cimport Py_ssize_t
66
from libcpp.deque cimport deque
77

88
from libc.stdlib cimport malloc, free
9-
from libc.math cimport isnan
109

1110
import numpy as np
1211
cimport numpy as cnp
@@ -18,6 +17,9 @@ cdef extern from "src/headers/cmath" namespace "std":
1817
int signbit(double) nogil
1918
double sqrt(double x) nogil
2019

20+
cdef extern from "numpy/npy_math.h":
21+
bint isnan(double) nogil
22+
2123
cimport util
2224
from util cimport numeric
2325

0 commit comments

Comments
 (0)