Skip to content

Commit

Permalink
Merge pull request cvxgrp#63 from wec7/master
Browse files Browse the repository at this point in the history
Fix HelloWorld.ipynb to solve Issue cvxgrp#59
  • Loading branch information
SteveDiamond authored Jul 14, 2021
2 parents 7ffa54b + 153001e commit 3985059
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/HelloWorld.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"outputs": [],
"source": [
"%matplotlib inline\n",
"import numpy as np\n",
"import pandas as pd\n",
"import quandl\n",
"\n",
Expand Down Expand Up @@ -257,7 +256,7 @@
],
"source": [
"r_hat = returns.rolling(window=250, min_periods=250).mean().shift(1).dropna()\n",
"Sigma_hat = returns.rolling(window=250, min_periods=250, closed='neither').cov().dropna()\n",
"Sigma_hat = returns.rolling(window=250, min_periods=250, closed='neither').cov().dropna().droplevel(1)\n",
"\n",
"r_hat.tail()"
]
Expand Down Expand Up @@ -452,4 +451,4 @@
},
"nbformat": 4,
"nbformat_minor": 1
}
}

0 comments on commit 3985059

Please sign in to comment.