示例#1
0
文件: column.py 项目: harrism/cudf
    def fillna(self, value):
        """Fill null values with ``value``.

        Returns a copy with null filled.
        """
        if not self.has_null_mask:
            return self
        out = cudautils.fillna(data=self.data.to_gpu_array(),
                               mask=self.mask.to_gpu_array(),
                               value=value)
        return self.replace(data=Buffer(out), mask=None, null_count=0)
示例#2
0
    def fillna(self, value):
        """Fill null values with ``value``.

        Returns a copy with null filled.
        """
        if not self.nullable:
            return self
        out = cudautils.fillna(data=self.data_array_view,
                               mask=self.mask_array_view,
                               value=value)
        return self.replace(data=Buffer(out), mask=None, null_count=0)