Skip to content

Commit 66a1e92

Browse files
TYP: type annotations for nancorr (#44227)
1 parent 84cb75d commit 66a1e92

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

pandas/_libs/algos.pyi

+5-9
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,14 @@ def kth_smallest(
5050
# Pairwise correlation/covariance
5151

5252
def nancorr(
53-
mat: np.ndarray, # const float64_t[:, :]
53+
mat: npt.NDArray[np.float64], # const float64_t[:, :]
5454
cov: bool = ...,
55-
minp=...,
56-
) -> np.ndarray: ... # ndarray[float64_t, ndim=2]
55+
minp: int | None = ...,
56+
) -> npt.NDArray[np.float64]: ... # ndarray[float64_t, ndim=2]
5757
def nancorr_spearman(
58-
mat: np.ndarray, # ndarray[float64_t, ndim=2]
58+
mat: npt.NDArray[np.float64], # ndarray[float64_t, ndim=2]
5959
minp: int = ...,
60-
) -> np.ndarray: ... # ndarray[float64_t, ndim=2]
61-
def nancorr_kendall(
62-
mat: np.ndarray, # ndarray[float64_t, ndim=2]
63-
minp: int = ...,
64-
) -> np.ndarray: ... # ndarray[float64_t, ndim=2]
60+
) -> npt.NDArray[np.float64]: ... # ndarray[float64_t, ndim=2]
6561

6662
# ----------------------------------------------------------------------
6763

0 commit comments

Comments
 (0)