Skip to content

Commit 2fc7e14

Browse files
fix: incorrect argument name on corr()
1 parent 3dc9eed commit 2fc7e14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/frame.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11264,7 +11264,7 @@ def corr(
1126411264
method: CorrelationMethod = "pearson",
1126511265
min_periods: int = 1,
1126611266
numeric_only: bool = False,
11267-
parallel: bool = False,
11267+
use_parallel: bool = False,
1126811268
) -> DataFrame:
1126911269
"""
1127011270
Compute pairwise correlation of columns, excluding NA/null values.
@@ -11349,7 +11349,7 @@ def corr(
1134911349
mat = data.to_numpy(dtype=float, na_value=np.nan, copy=False)
1135011350

1135111351
if method == "pearson":
11352-
correl = libalgos.nancorr(mat, minp=min_periods, parallel=parallel)
11352+
correl = libalgos.nancorr(mat, minp=min_periods, use_parallel=use_parallel)
1135311353
elif method == "spearman":
1135411354
correl = libalgos.nancorr_spearman(mat, minp=min_periods)
1135511355
elif method == "kendall" or callable(method):

0 commit comments

Comments
 (0)