Pandas prior to 0.19.0 had direct support for various web-based data source classes in the pandas.io.data namespace. This has changed, as the functionality has been refactored out of pandas and into the pandas-datareader package.
This package provides access to many useful data sources, including:
- Daily historical stock prices from either Yahoo! or Google Finance
- Yahoo! and Google Options
- Enigma, a provider of structured data
- The Federal Reserve Economic Data Library
- Kenneth French's Data Library
- The World Bank
- OECD
- Eurostat
- EDGAR Index
- TSP Fund Data
- Oanda currency historical rates
- Nasdaq Trader symbol definitions
Note that because this data is coming from an external data source and that the actual values can change over time, it may be possible that when you run the code, you get different values than those in the book.
...