Skip to content
davidrpugh edited this page Feb 15, 2013 · 4 revisions

The World Bank has an excellent web API that can be accessed and converted into a Pandas Dataframe using the wbdata library.

FRED Database:

The St. Louis Federal Reserve's FRED database is currently available via the pandas.io.data.DataReader module.

Yahoo!Finance:

Financial data from Yahoo!Finance is currently available via is currently available via the pandas.io.data.DataReader module.

Kenneth French (of Fama and French fame) has an excellent library of financial data sets that has been made available via the pandas.io.data.DataReader module.

Online source of free economics and financial data (over 2 million time series!) They have a super simple web API for accessing the data.

  • Small project: write a simple function to grab a user specified time series via the web API and convert it into a Pandas Dataframe/Panel.
  • Medium project: write a more robust interface to the web API (similar to wbdata) that allows user to search for data, and then download the results into a Pandas Dataframe/Panel.

Angus Maddison data

Best available data on historical time series across countries.

  • Small project: Convert the data from its current form (ugly .xls spreadsheet), to a nicely formatted .csv file (or equivalent) so that it can be loaded into a Pandas Dataframe for analysis.