numpy / 1.22.0 / reference / generated / numpy.ma.maskedarray.imag.html /

numpy.ma.MaskedArray.imag

property

property ma.MaskedArray. imag

The imaginary part of the masked array.

This property is a view on the imaginary part of this MaskedArray.

See also

real

Examples

>>> x = np.ma.array([1+1.j, -2j, 3.45+1.6j], mask=[False, True, False])
>>> x.imag
masked_array(data=[1.0, --, 1.6],
             mask=[False,  True, False],
       fill_value=1e+20)

© 2005–2021 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/1.22/reference/generated/numpy.ma.MaskedArray.imag.html