wesm / pydata-book

Materials and IPython notebooks for "Python for Data Analysis" by Wes McKinney, published by O'Reilly Media

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

3rd Ed | Ch 5 | Correlation and Covariance code block

TomPham97 opened this issue · comments

The following code block from the 3rd edition needs to be changed to

returns.MSFT.corr(returns["IBM"])

I decided to use the returns['MSFT'] (and avoid the dot-attribute access) in the 3rd edition