HTTP/1.1 301 Moved Permanently
Date: Sun, 27 Jul 2025 16:16:07 GMT
Server: Apache/2.4.39 (Ubuntu)
Location: https://numpy.org/doc/stable/reference/generated/numpy.ndarray.T.html
Content-Length: 358
Content-Type: text/html; charset=iso-8859-1
HTTP/2 200
date: Sun, 27 Jul 2025 16:16:07 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: Sun, 27 Jul 2025 16:26:07 GMT
cache-control: max-age=600
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=TaTNDzzdf8Z6fogURyZHMhdAno5BAh9PqErHsQkeqNVYaTpd221i6Ptynz3kiyaPGD9GEbhzNp1jRtX23faXYV4u0JKGmNg%3D"}]}
x-proxy-cache: MISS
x-github-request-id: DB6D:1E5AA5:15CE85:19D983:688650C6
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
age: 0
via: 1.1 varnish
x-served-by: cache-bom-vanm7210072-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753632967.416847,VS0,VE211
vary: Accept-Encoding
x-fastly-request-id: 13aced0a347c12fe6c6f3b59d750abc26cbd2e82
cf-cache-status: DYNAMIC
content-encoding: gzip
cf-ray: 965d707e0c256f00-BOM
alt-svc: h3=":443"; ma=86400
numpy.ndarray.T — NumPy v2.3 Manual
numpy.ndarray.T
attribute
-
ndarray.T
View of the transposed array.
Same as self.transpose()
.
Examples
>>> import numpy as np
>>> a = np.array([[1, 2], [3, 4]])
>>> a
array([[1, 2],
[3, 4]])
>>> a.T
array([[1, 3],
[2, 4]])
>>> a = np.array([1, 2, 3, 4])
>>> a
array([1, 2, 3, 4])
>>> a.T
array([1, 2, 3, 4])