scipy.sparse
scipy.sparse.spmatrix.nnz
scipy.sparse.spmatrix.asformat
spmatrix.
shape
Get shape of a matrix.