Is it possible to create a 2-dimensional NumPy array with 1 row and 2 columns (row vector)?
This is what I'm doing (from the documentation), but I'd like to know if it's possible to do it in one (easier) step:
X_new2 = np.array([8.5,156])
X_new2 = X_new2[np.newaxis, :]
I've also tried:
X_new2 = np.array([[8.5], [156]])
But this is returning a column instead.