html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/issues/7340#issuecomment-1334059488,https://api.github.com/repos/pydata/xarray/issues/7340,1334059488,IC_kwDOAMm_X85PhCHg,7647340,2022-12-01T16:50:49Z,2022-12-01T16:50:49Z,NONE,The problem is in https://github.com/pydata/xarray/blob/main/xarray/core/computation.py#L1402-L1404. You need to conjugate one of the arrays before computing the dot product.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1470583016 https://github.com/pydata/xarray/issues/7340#issuecomment-1334027040,https://api.github.com/repos/pydata/xarray/issues/7340,1334027040,IC_kwDOAMm_X85Pg6Mg,7647340,2022-12-01T16:25:26Z,2022-12-01T16:25:26Z,NONE,I'm now noticing that `scipy.stats.pearsonr` returns the same value as `xr.corr`.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1470583016 https://github.com/pydata/xarray/issues/7340#issuecomment-1334024381,https://api.github.com/repos/pydata/xarray/issues/7340,1334024381,IC_kwDOAMm_X85Pg5i9,7647340,2022-12-01T16:23:25Z,2022-12-01T16:23:25Z,NONE,"Yes. If I use a `np.array` and call `np.corrcoef`, I get a 2x2 correlation matrix full of ones.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1470583016