I am running a np.random.choice like the one below.
record = np.random.choice(data, size=6, p=prob)
maxv = max(record)
minv = min(record)
val = record
From this I am finding the min and the max. I want to join this to an pandas dataframe. Below is my desired output:
Min,Max,value
1,5,2
1,5,3
1,5,3
1,5,5
1,5,1
1,5,3
This is an example of the output I would like from one simulation. Keep in mind I am performing this simulation many times so I would like to continuously be able to add onto the dataframe that is created. Each simulation will have its own min and max respectively. I also would like to keep the min and max in the output (why 1 and 5 are in the example output).