We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0851593 commit 98fb602Copy full SHA for 98fb602
pandas/core/generic.py
@@ -10102,13 +10102,8 @@ def mask(
10102
10103
if isinstance(cond, np.ndarray):
10104
if all(
10105
- np.apply_along_axis(
10106
- lambda x: x[0] is NA
10107
- or isinstance(x[0], (np.bool_, bool))
10108
- or x[0] is np.nan,
10109
- axis=1,
10110
- arr=cond.flatten().reshape(cond.size, 1),
10111
- )
+ x is NA or isinstance(x, (np.bool_, bool)) or x is np.nan
+ for x in cond.flatten()
10112
):
10113
if not cond.flags.writeable:
10114
cond.setflags(write=True)
0 commit comments