On this page
numpy.ndarray.reshape
method
ndarray.reshape(shape, order='C')-
Returns an array containing the same data with a new shape.
Refer to
numpy.reshapefor full documentation.See also
numpy.reshape- equivalent function
Notes
Unlike the free function
numpy.reshape, this method onndarrayallows 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)).
© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.17.0/reference/generated/numpy.ndarray.reshape.html