I have created a numpy array with the np.shape(sample_size, ), then I used pandas dataframe to display the data. I would like to ask you, how could I add subcolumn index for the list, for example: sample 1, sample 2, sample 3, etc ?
low = 0
high = 500
sample_size = 5
def get_numbers(low, high, sample_size):
return random.sample(range(low, high), sample_size)
p_one = np.array(get_numbers(low, high, sample_size), dtype = int)
p_two = np.array(get_numbers(low, high, sample_size), dtype = int)
p_three = np.array(get_numbers(low, high, sample_size), dtype = int)
p_four = np.array(get_numbers(low, high, sample_size), dtype = int)
p_five = np.array(get_numbers(low, high, sample_size), dtype = int)
for idn in range(0,n): #------------------n+1 for the last process step
p = [p_one, p_two, p_three, p_four, p_five]
df_rawdata = pd.DataFrame(list(zip(p)),columns =['Processing'])