0

I have the following row matrix which needs to be transposed:

[2.16764662 2.09886797]

So far, I have used np.transpose() and arr.T but for both I get

[2.16764662 2.09886797]

Instead of

[2.16764662 
 2.09886797]

Any idea what I am doing wrong?

sumitpal0593
  • 165
  • 1
  • 2
  • 13
  • that's not a row matrix. It's a 1d array. Don't be afraid of reading the docs, https://numpy.org/doc/stable/reference/generated/numpy.ndarray.transpose.html – hpaulj Jul 27 '21 at 14:30

0 Answers0