HTTP/1.1 301 Moved Permanently
Date: Mon, 28 Jul 2025 18:17:20 GMT
Server: Apache/2.4.39 (Ubuntu)
Location: https://numpy.org/doc/stable/reference/generated/numpy.ndarray.reshape.html
Content-Length: 364
Content-Type: text/html; charset=iso-8859-1
HTTP/2 200
date: Mon, 28 Jul 2025 18:17:21 GMT
content-type: text/html; charset=utf-8
server: cloudflare
x-origin-cache: HIT
last-modified: Fri, 25 Jul 2025 11:42:00 GMT
access-control-allow-origin: *
expires: Mon, 28 Jul 2025 18:27:20 GMT
cache-control: max-age=600
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=Hs0bUQqSt5UQ%2FNRdc1H0b%2Fb3stHVq1nNLVAt5b455RTT%2Fcx%2BhEHlB%2FnDaEF7hSwSYIX9SrGxCzYs20P0cGHG6ZdnAtUk0CPfiQ%3D%3D"}]}
x-proxy-cache: MISS
x-github-request-id: D074:A550F:ECA0:1107B:6887BEB0
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
age: 0
via: 1.1 varnish
x-served-by: cache-bom-vanm7210067-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753726641.819393,VS0,VE211
vary: Accept-Encoding
x-fastly-request-id: 7fff2a01d71433262c3a1cff3b55973a68590472
cf-cache-status: DYNAMIC
content-encoding: gzip
cf-ray: 96665f70eb56ff6a-BOM
alt-svc: h3=":443"; ma=86400
numpy.ndarray.reshape — NumPy v2.3 Manual
Back to top
numpy.ndarray.reshape
method
ndarray. reshape ( shape , / , * , order = 'C' , copy = None )
Returns an array containing the same data with a new shape.
Refer to numpy.reshape
for full documentation.
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 to
a.reshape((10, 11))
.