I have a numpy array such as this:
x = np.arange(0,9)
y = np.arange(20,29)
X = np.array([x, y])
so X looks like [[0,1,2,...9],[20,21,...,29]]
but I would like X to be shaped like this:
X = np.array([[0, 20],
[1, 21],
[2, 22],
...
[9, 29]])
How can I do this with x, and y arrays given above?
X.T