NumPy · Function
np.reshape
numpy.reshape changes an array to a compatible shape without changing its data. It may return a view or create a copy.
Last updated
Syntax
numpy.reshape(a, /, shape, order='C', *, copy=None)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
numpy.ndarray.reshapenumpy.ravel