.
(years)'])): df4['Time (years)'][i] = df1['Time (years)'][i]-0.5 df4['Expected Accrual Payment'] = (df4['Conditional Default Probability'] * 0.5).round(4) df4['Financial Discount Factor'] = (1 * np.exp(-r*df4['Time (years)'])).round(4) df4['APV of Expected Accrual Payment'] = (df4['Expected Accrual