Skip to content

Commit 7c0cd95

Browse files
author
Jesse Osiecki
authored
Update Efficient Frontier with Quandl (Part 1).py
1 parent 45fa313 commit 7c0cd95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tutorials/Efficient Frontier with Quandl (Part 1).py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
'Volatility': port_volatility}
4949

5050
# extend original dictionary to accomodate each ticker and weight in the portfolio
51-
for counter,symbol in enumerate(selected):
51+
for counter,symbol in enumerate(cov_annual.columns):
5252
portfolio[symbol+' Weight'] = [Weight[counter] for Weight in stock_weights]
5353

5454
# make a nice dataframe of the extended dictionary
@@ -66,4 +66,4 @@
6666
plt.xlabel('Volatility (Std. Deviation)')
6767
plt.ylabel('Expected Returns')
6868
plt.title('Efficient Frontier')
69-
plt.show()
69+
plt.show()

0 commit comments

Comments
 (0)