Skip to content

Commit 1118a3c

Browse files
author
Daniel Saxton
committed
Add comment
1 parent 08d8e39 commit 1118a3c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/_libs/algos.pyx

+2
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,8 @@ def nancorr_spearman(const float64_t[:, :] mat, Py_ssize_t minp=1):
316316
for xi in range(K):
317317
for yi in range(xi + 1):
318318
nobs = 0
319+
# Keep track of whether the two columns have the same
320+
# missing pattern, if not we need to recalculate ranks
319321
same_miss_pat = True
320322
for i in range(N):
321323
same_miss_pat &= not (mask[i, xi] ^ mask[i, yi])

0 commit comments

Comments
 (0)