eye(m, n) returns a sparse (m x n) matrix where the k-th diagonal is all ones and everything else is zeros.
scipy.sparse.lil_matrix.transpose
scipy.sparse.identity
Enter search terms or a module, class or function name.