numpy.ndarray.nonzero
method
- 
ndarray.nonzero()
- 
Return the indices of the elements that are non-zero. Refer to numpy.nonzerofor full documentation.See also - 
 numpy.nonzero
- equivalent function
 
- 
 
    © 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
    https://docs.scipy.org/doc/numpy-1.16.1/reference/generated/numpy.ndarray.nonzero.html