Skip to content

Commit 16cc17b

Browse files
committed
update
Signed-off-by: You-Cheng Lin <mses010108@gmail.com>
1 parent b86cd2e commit 16cc17b

File tree

1 file changed

+1
-5
lines changed
  • python/ray/air/util/tensor_extensions

1 file changed

+1
-5
lines changed

python/ray/air/util/tensor_extensions/pandas.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -949,12 +949,8 @@ def isna(self) -> "TensorArray":
949949
return np.array(
950950
[self._tensor[i] is None for i in range(len(self))], dtype=bool
951951
)
952-
elif self._tensor.dtype.type is np.str_:
953-
return np.all(self._tensor == "", axis=tuple(range(1, self._tensor.ndim)))
954952
else:
955-
return np.all(
956-
np.isnan(self._tensor), axis=tuple(range(1, self._tensor.ndim))
957-
)
953+
return np.zeros(len(self), dtype=bool)
958954

959955
def take(
960956
self, indices: Sequence[int], allow_fill: bool = False, fill_value: Any = None

0 commit comments

Comments
 (0)