class documentation
class MaskedRecords(MaskedArray): (source)
Method | __array |
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 |
Forces the mask to hard. |
Method | soften |
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 | fill |
Undocumented |
Instance Variable | _fill |
Filling values for each field. |
Instance Variable | _hardmask |
Undocumented |
Instance Variable | _mask |
Mask of the records. A record is masked when all its fields are masked. |
Property | _data |
Returns the data as a recarray. |
Property | _fieldmask |
Alias to mask. |
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):
(source)
¶
Undocumented
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.
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.