scikits.timeseries.last_unmasked_val¶
- last_unmasked_val(a, axis=None)¶
Retrieve the last unmasked value along the given axis in a MaskedArray.
Parameters: a : MaskedArray
Input MaskedArray (or a subclass of).
axis : int, optional
Axis along which to perform the operation. If None, applies to a flattened version of the array.
Returns: val : {singleton of type marray.dtype}
Last unmasked value in a. If all values in a are masked, returns the numpy.ma.masked constant.
