Commit b64f438
BUG: Clip corr edge cases between -1.0 and 1.0 (#61154)
* 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
---------
Co-authored-by: John Hendricks <[email protected]>1 parent 4de503d commit b64f438
File tree
3 files changed
+21
-3
lines changed- doc/source/whatsnew
- pandas
- _libs
- tests/frame/methods
3 files changed
+21
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
| 676 | + | |
676 | 677 | | |
677 | 678 | | |
678 | 679 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
357 | 357 | | |
358 | 358 | | |
359 | | - | |
360 | 359 | | |
361 | 360 | | |
362 | 361 | | |
| |||
389 | 388 | | |
390 | 389 | | |
391 | 390 | | |
| 391 | + | |
392 | 392 | | |
393 | | - | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
394 | 399 | | |
395 | 400 | | |
396 | 401 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
0 commit comments