You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In correlation.py the function _correl_pvalue(r, nx, k=0) does not handle the case when r=1.0.
This results in:
lib/python3.12/site-packages/pingouin/effsize.py:152): RuntimeWarning: divide by zero encountered in arctanh
z = np.arctanh(stat) # R-to-z transform
lib/python3.12/site-packages/pingouin/correlation.py:68): RuntimeWarning: divide by zero encountered in scalar divide
tval = r * np.sqrt(dof [/](https://file+.vscode-resource.vscode-cdn.net/) (1 - r**2))