### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Masked array operations »

# numpy.ma.filled

`numpy.ma.``filled`(a, fill_value=None)

  Return a as an array where masked data have been replaced by value.

  If a is not a MaskedArray, a itself is returned. If a is a MaskedArray and fill_value is None, fill_value is set to a.fill_value.

  Parameters: | a : maskedarray or array_like An input object. fill_value : {var}, optional Filling value. If None, the output of `get_fill_value(a)` is used instead.
  Returns: | a : array_like

### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Masked array operations »