Commit 5736b96
Restrict clipping of DataFrame.corr only when cov=False (#61214)
* clip correlation coefficient between -1 and 1
* Added test to check if corr within bounds
* Added tuple to mistyped parameter
* Transfered np.clip to algos.nancorr
* Clip covxy / divsor instead of result
* Clip covxy / divsor within nogil
* Added whatsnew note
* Replaced long entry with single entry
* restricted clipping to when cov=False
* Added test for covariance
* Changed name of test variables
* fixed test case for cov
---------
Co-authored-by: John Hendricks <jwh8zc@virginia.edu>1 parent af16382 commit 5736b96
2 files changed
+15
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
398 | 399 | | |
399 | 400 | | |
400 | 401 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
0 commit comments