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