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