class documentation

class MaskedRecords(MaskedArray):

View In Hierarchy

_data : recarray
Underlying data, as a record array.
_mask : boolean array
Mask of the records. A record is masked when all its fields are masked.
_fieldmask : boolean recarray
Record array of booleans, setting the mask of each individual field of each record.
_fill_value : record
Filling values for each field.
Method __array​_finalize__ Undocumented
Method __getattribute__ Undocumented
Method __getitem__ Returns all the fields sharing the same fieldname base.
Method __getstate__ Return the internal state of the masked array.
Method __len__ Returns the length
Method __new__ Undocumented
Method __reduce__ Return a 3-tuple for pickling a MaskedArray.
Method __repr__ Calculates the repr representation.
Method __setattr__ Sets the attribute attr to the value val.
Method __setitem__ Sets the given record to value.
Method __setstate__ Restore the internal state of the masked array.
Method __str__ Calculates the string representation.
Method copy Returns a copy of the masked record.
Method harden​_mask Forces the mask to hard.
Method soften​_mask Forces the mask to soft
Method tolist Return the data portion of the array as a list.
Method view Returns a view of the mrecarray.
Instance Variable ​_hardmask Undocumented
Instance Variable ​_mask Undocumented
Instance Variable fill​_value Undocumented
Property ​_data Returns the data as a recarray.
Property ​_fieldmask Alias to mask.
def __array_finalize__(self, obj):

Undocumented

def __getattribute__(self, attr):

Undocumented

def __getitem__(self, indx):

Returns all the fields sharing the same fieldname base.

The fieldname base is either _data or _mask.

def __getstate__(self):

Return the internal state of the masked array.

This is for pickling.

def __len__(self):
Returns the length
def __new__(cls, shape, dtype=None, buf=None, offset=0, strides=None, formats=None, names=None, titles=None, byteorder=None, aligned=False, mask=nomask, hard_mask=False, fill_value=None, keep_mask=True, copy=False, **options):

Undocumented

def __reduce__(self):
Return a 3-tuple for pickling a MaskedArray.
def __repr__(self):
Calculates the repr representation.
def __setattr__(self, attr, val):
Sets the attribute attr to the value val.
def __setitem__(self, indx, value):
Sets the given record to value.
def __setstate__(self, state):

Restore the internal state of the masked array.

This is for pickling. state is typically the output of the __getstate__ output, and is a 5-tuple:

  • class name
  • a tuple giving the shape of the data
  • a typecode for the data
  • a binary string for the data
  • a binary string for the mask.
def __str__(self):
Calculates the string representation.
def copy(self):
Returns a copy of the masked record.
def harden_mask(self):
Forces the mask to hard.
def soften_mask(self):
Forces the mask to soft
def tolist(self, fill_value=None):

Return the data portion of the array as a list.

Data items are converted to the nearest compatible Python type. Masked values are converted to fill_value. If fill_value is None, the corresponding entries in the output list will be None.

def view(self, dtype=None, type=None):
Returns a view of the mrecarray.
_hardmask: bool =

Undocumented

_mask =

Undocumented

fill_value =

Undocumented

@property
_data =
Returns the data as a recarray.
@property
_fieldmask =
Alias to mask.