.
rn.rand(Trials,1) df.drop([0], axis=1, inplace=True) df['Binomial'] = 0.00 for i in range(0,len(df['RAND'])): df['Binomial'][i] = si.binom.ppf(df['RAND'][i], n=6, p=CreditSpread) countif = len(df[(df['Binomial'] == 3)]) count = len(df['Binomial']) qq = countif/count V.append(qq) Data Analysis Let’s