I'm new to python and numpy (I'm more accustomed to R) and have been playing around with creating arrays and want to create a tall array, where the first column is just a range with custom increment, and the second column is a unif random between 0 and 1.
I have come up with the below, but it seems very clunky and not particularly readable. Are there more efficient ways of achieving the same result in one line?
import numpy as np
1stcol = np.array(np.arange(1,20,0.5), ndmin=2)
2ndcol = np.array(np.random.uniform(0,1,np.shape(d)[1]), ndmin=2)
tallmat = np.transpose(np.concatenate((d,e),axis=0))