.
that only 3 companies out of 6 companies defaulted): countif = len(df[(df['Binomial'] == 3)]) count = len(df['Binomial']) countif/count 0.076 10 Simulations Solution V = [] Simulations = 10 Trials = 1000 for j in range(0,Simulations): f = np.arange(1,Trials+1) df = pd.DataFrame(data=f) df['RAND'] =