def _get_mask_as_column(self): from .numerical import NumericalColumn data = Buffer(cudautils.ones(len(self), dtype=np.bool_)) mask = NumericalColumn(data=data, mask=None, null_count=0, dtype=np.bool_) if self._mask is not None: mask = mask.set_mask(self._mask).fillna(False) return mask
def _get_mask_as_series(self): mask = Series(cudautils.ones(len(self), dtype=np.bool)) if self._column.mask is not None: mask = mask.set_mask(self._column.mask).fillna(False) return mask
def _get_mask_as_column(self): data = Buffer(cudautils.ones(len(self), dtype=np.bool_)) mask = as_column(data=data) if self.nullable: mask = mask.set_mask(self._mask).fillna(False) return mask