Thank you, Adam

I am asking about the following line of codes which are located in the last part of the example you provided in the Jupyyter notebook:

# get only the results that describe repairable damage

agg_DF_ = agg_DF.loc[agg_DF['repair_cost'] < 2.0e7]

print('\nProbability of experiencing repairable damage:', agg_DF_.shape[0] / agg_DF.shape[0])

I guess :

1-The probability of "repairable damage" is defined as the number of realizations whose repair cost is less than (2.0E+7) over the total number of realizations. Is that right?

2- In the realization that the building experiences collapse or excessive drift, the repair cost is taken equal to the replacement cost which is more than 2.0E+07, therefore, they will not be considered repairable cases. Is that right?

3- How did you define 2.0E+07? Is it almost half of the replacement cost? Meaning that if the repair cost is more than 50% of the replacement cost, it is not reasonable to repair the building?

Again, I really appreciate your endless support.

Pooya,