QuantEcon / meta

For issues and discussion covering more than one repository
0 stars 0 forks source link

Accessing Data using Python #89

Open mmcky opened 1 year ago

mmcky commented 1 year ago

This is a general note for accessing data using python.

The best starting place is to use pandas.datareader but it is relatively slow to update and isn't always the most convenient way to access data. Sometimes it can be beneficial to use a custom library that is more tightly integrated with the api that is offered such as for the WDI.

If we can use datareader it will simplify dependencies

It supports data from these sources

Some other avenues are:

Fred

  1. Directly via the API
  2. https://github.com/mortada/fredapi

Penn World Tables

The PWT dataset is only ~6Mb so I typically download it as an Excel file and then use pandas to read in the information I need

World Development Indicators (WDI) by World Bank

  1. https://data.worldbank.org/products/third-party-apps
  2. https://blogs.worldbank.org/opendata/introducing-wbgapi-new-python-package-accessing-world-bank-data