Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -207,7 +207,7 @@ def simulate_mc(data, days, iterations, return_type='log', plot=True):
|
|
207 |
"Return": round(100*(pd.DataFrame(price_list).iloc[-1].mean()-price_list[0,1])/pd.DataFrame(price_list).iloc[-1].mean(), 2),
|
208 |
"Probability of Breakeven": probs_find(pd.DataFrame(price_list), 0, on='return')
|
209 |
}
|
210 |
-
return (
|
211 |
|
212 |
|
213 |
# return pd.DataFrame(price_list)
|
|
|
207 |
"Return": round(100*(pd.DataFrame(price_list).iloc[-1].mean()-price_list[0,1])/pd.DataFrame(price_list).iloc[-1].mean(), 2),
|
208 |
"Probability of Breakeven": probs_find(pd.DataFrame(price_list), 0, on='return')
|
209 |
}
|
210 |
+
return (output)
|
211 |
|
212 |
|
213 |
# return pd.DataFrame(price_list)
|