On this page
numpy.ma.MaskedArray.diagonal
method
ma.MaskedArray.diagonal(offset=0, axis1=0, axis2=1)[source]- 
    
Return specified diagonals. In NumPy 1.9 the returned array is a read-only view instead of a copy as in previous NumPy versions. In a future version the read-only restriction will be removed.
Refer to
numpy.diagonalfor full documentation.See also
numpy.diagonal- 
       
equivalent function
 
 
© 2005–2021 NumPy Developers
Licensed under the 3-clause BSD License.
 https://numpy.org/doc/1.20/reference/generated/numpy.ma.MaskedArray.diagonal.html