SciPy

scipy.sparse.csc_matrix.reshape

csc_matrix.reshape(shape)[source]