We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b86cd2e commit 16cc17bCopy full SHA for 16cc17b
python/ray/air/util/tensor_extensions/pandas.py
@@ -949,12 +949,8 @@ def isna(self) -> "TensorArray":
949
return np.array(
950
[self._tensor[i] is None for i in range(len(self))], dtype=bool
951
)
952
- elif self._tensor.dtype.type is np.str_:
953
- return np.all(self._tensor == "", axis=tuple(range(1, self._tensor.ndim)))
954
else:
955
- return np.all(
956
- np.isnan(self._tensor), axis=tuple(range(1, self._tensor.ndim))
957
- )
+ return np.zeros(len(self), dtype=bool)
958
959
def take(
960
self, indices: Sequence[int], allow_fill: bool = False, fill_value: Any = None
0 commit comments