coo_matrix.
diagonal
Returns the main diagonal of the matrix
Enter search terms or a module, class or function name.