scipy.sparse.dok_matrix.reshape

dok_matrix.reshape(shape)

This Page