### Navigation

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

# numpy.ma.MaskedArray.get_fill_value

`MaskedArray.``get_fill_value`()

  Return the filling value of the masked array.

  Returns : | fill_value : scalar The filling value.

  Examples

      >>> for dt in [np.int32, np.int64, np.float64, np.complex128]:
      ...     np.ma.array([0, 1], dtype=dt).get_fill_value()
      ...
      999999
      999999
      1e+20
      (1e+20+0j)

      >>> x = np.ma.array([0, 1.], fill_value=-np.inf)
      >>> x.get_fill_value()
      -inf

### Navigation

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