scipy.sparse
scipy.sparse.coo_matrix
scipy.sparse.coo_matrix.nnz
coo_matrix.
shape
Get shape of a matrix.