I have a numpy 1dimensional array with n values lets call it xdata.
I would like to create a multidimensional numpy array lets call it xdataMulti such that each dimension of this array contains values in xdata that are in a certain range.
For example lets say that
xdata = np.array([-0.879645943,-0.7897614865,-0.7051130178,-0.6108652382,-0.5270894341,...])
and that I want to put all values of xdata between -0.9 and -0.6 in xdataMulti[:,0] and all values between -0.6 and 0 in xdataMulti[:,1], etc.
How do I create and fill xdataMulti (I know beforehand how many ranges I have and their endpoints but I dont know how many points of xdata are in each range, I have to loop through xdata to find out)?