mrtkp9993/QuantitaveFinanceExamplesPy

14_Value_at_Risk inf in PnL

Closed this issue · 0 comments

In line 57 you can add at the end for delete inf value :
PnL = PnL[np.isfinite(PnL) | np.isnan(PnL)]