Reading data from remote data services
pandas has direct support for various web-based data source classes in the pandas.io.data
namespace. The primary class of interest is pandas.io.data.DataReader
, which is implemented to read data from various supported sources and return it to the application directly as DataFrame
.
Currently, support exists for the following sources via the DataReader
class:
- Daily historical prices' stock from either Yahoo! and Google Finance
- Yahoo! Options
- The Federal Reserve Economic Data library
- Kenneth French's Data Library
- The World Bank
The specific source of data is specified via the DataReader
object's data_source
parameter. The specific items to be retrieved are specified using the name
parameter. If the data source supports ...
Get Learning pandas now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.