ndarray.reshape¶
-
ndarray.reshape(self, *args, **kwargs)¶ Returns a copy of the array with a new shape.
Notes
Unlike the free function numpy.reshape, this method on ndarray allows the elements of the shape parameter to be passed in as separate arguments. For example,
a.reshape(10, 11)is equivalent toa.reshape((10, 11)).