def get_dt_field(self, field): out = columnops.column_empty_like_same_mask( self, dtype=np.int16 ) _gdf.apply_unaryop(self.funcs[field], self, out) return out
def numeric_column_unaryop(operand, op, out_dtype): out = columnops.column_empty_like_same_mask(operand, dtype=out_dtype) _gdf.apply_unaryop(op, operand, out) return out.view(NumericalColumn, dtype=out_dtype)