In numpy the dimensions of the resulting array vary at run time. There is often confusion between a 1d array and a 2d array with 1 column. In one case I can ite
numpy
y = np.array(12) y = y.reshape(-1,1) print(y.shape) O/P:- (1, 1)