Question

I use Python and NumPy and have some problems with "transpose":

import numpy as np
a = np.array([5,4])
print(a)
print(a.T)

Invoking a.T is not transposing the array. If a is for example [[],[]] then it transposes correctly, but I need the transpose of [...,...,...].

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top