HTTP/1.1 301 Moved Permanently
Date: Tue, 29 Jul 2025 02:25:22 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: Tue, 29 Jul 2025 02:25:23 GMT
content-type: text/html; charset=utf-8
server: cloudflare
x-origin-cache: HIT
last-modified: Fri, 25 Jul 2025 11:41:59 GMT
access-control-allow-origin: *
expires: Tue, 29 Jul 2025 02:35:23 GMT
cache-control: max-age=600
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=GjvsTjgsF3T3oSxnFF2ucwb%2F9QhyjAR9cBDk%2FMnqeMZ5CjOqW%2B9LdFP5LEND%2FZf6yUm5SXpNVtbh%2BlcSxTc71Kh7zbSGIT0DNg%3D%3D"}]}
x-proxy-cache: MISS
x-github-request-id: 9985:244431:1C8F2:2811F:68883112
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
age: 0
via: 1.1 varnish
x-served-by: cache-bom-vanm7210027-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753755923.226609,VS0,VE211
vary: Accept-Encoding
x-fastly-request-id: 4406b17ca9c95a593e5d17c29f312ee96cdc3a87
cf-cache-status: DYNAMIC
content-encoding: gzip
cf-ray: 96692a5788914442-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))
.