scipy.sparse
scipy.sparse.coo_matrix.getnnz
scipy.sparse.coo_matrix.log1p
coo_matrix.
getrow
Returns a copy of row i of the matrix, as a (1 x n) sparse matrix (row vector).