Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8ae9403

Browse files
authoredOct 12, 2022
fix import and pre-commit
1 parent 93879df commit 8ae9403

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎pandas/core/frame.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@
162162
from pandas.core.array_algos.take import take_2d_multi
163163
from pandas.core.arraylike import OpsMixin
164164
from pandas.core.arrays import (
165+
BaseMaskedArray,
165166
DatetimeArray,
166167
ExtensionArray,
167168
PeriodArray,
@@ -10605,9 +10606,9 @@ def corrwith(
1060510606
nonnull_mask = ~self[col].isna() & k_mask
1060610607
if isinstance(val, BaseMaskedArray):
1060710608
val = val._data
10608-
corrs[col] = np.corrcoef(
10609-
val[nonnull_mask], k[nonnull_mask]
10610-
)[0, 1]
10609+
corrs[col] = np.corrcoef(val[nonnull_mask], k[nonnull_mask])[
10610+
0, 1
10611+
]
1061110612
else:
1061210613
for col in cols:
1061310614
val = self[col].values

0 commit comments

Comments
 (0)
Please sign in to comment.