Skip to content

Commit adbedf9

Browse files
authored
Update array_ops.py to pass dosctring check
the dosctring check required me to return a true or false bool only
1 parent a6f12a0 commit adbedf9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/ops/array_ops.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,8 @@ def is_nullable_bool(arr) -> bool:
398398
# isna works elementwise on object arrays
399399
na_mask = isna(arr)
400400
bool_mask = np.array([x is True or x is False for x in arr])
401-
return np.all(na_mask | bool_mask)
401+
return bool(np.all(na_mask | bool_mask))
402+
#return np.all(na_mask | bool_mask)
402403

403404

404405
def safe_is_true(arr: np.ndarray) -> np.ndarray:

0 commit comments

Comments
 (0)