Skip to content

Commit 12ac9b2

Browse files
committed
Rollback
1 parent d3c7dbf commit 12ac9b2

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

cookbook/2-Mean-Variance-Optimisation.ipynb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,9 +1195,6 @@
11951195
"\n",
11961196
"latest_prices = prices.iloc[-1] # prices as of the day you are allocating\n",
11971197
"\n",
1198-
"if prices.isna().values.any():\n",
1199-
" latest_prices = prices.dropna(how=\"any\").iloc[-1]\n",
1200-
"\n",
12011198
"da = DiscreteAllocation(weights, latest_prices, total_portfolio_value=20000, short_ratio=0.3)\n",
12021199
"alloc, leftover = da.lp_portfolio()\n",
12031200
"print(f\"Discrete allocation performed with ${leftover:.2f} leftover\")\n",

0 commit comments

Comments
 (0)