MaskedColumn

class astropy.table.table.MaskedColumn [edit on github][source]

Bases: astropy.table.table.BaseColumn, numpy.ma.core.MaskedArray

Attributes Summary

fill_value
data

Methods Summary

copy([data, copy_data]) Return a copy of the current MaskedColumn instance.
filled([fill_value]) Return a copy of self, with masked values filled with a given value.

Attributes Documentation

fill_value[source]
data[source]

Methods Documentation

copy(data=None, copy_data=True) [edit on github][source]

Return a copy of the current MaskedColumn instance.

Parameters :

data : array; optional

Data to use when creating MaskedColumn copy. If not supplied the column data array is used.

copy_data : boolean; optional

Make a copy of input data instead of using a reference (default=True)

Returns :

column : MaskedColumn

A copy of self

filled(fill_value=None) [edit on github][source]

Return a copy of self, with masked values filled with a given value.

Parameters :

fill_value : scalar; optional

The value to use for invalid entries (None by default). If None, the fill_value attribute of the array is used instead.

Returns :

filled_column : Column

A copy of self with masked entries replaced by fill_value (be it the function argument or the attribute of self).

Page Contents