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