pandas-datareader
Pandas-compatible data readers. Formerly a component of pandas.
What it is and what it does
pandas-datareader is a data-access library that retrieves macroeconomic, policy, and factor-oriented datasets from public sources and returns them as pandas DataFrames. It wraps APIs from providers like FRED (Federal Reserve Economic Data), Fama/French, World Bank, OECD, Eurostat, and others, letting you fetch economic indicators, interest rates, factor returns, and similar data programmatically without manual downloads.
The library is built on pandas, lxml, and requests, making it straightforward to integrate into data analysis workflows. It requires Python 3.11 or later and has been actively maintained since 2015. The public API is designed around convenience functions like `get_data_fred()` that abstract away the details of authentication and HTTP calls, so you can focus on the data itself.
Use it for:
- Fetch US Treasury yield curves (e.g., 10-year rates) from FRED for financial modeling.
- Download Fama/French factor returns to build multi-factor risk models.
- Retrieve World Bank development indicators for cross-country economic analysis.
- Access OECD macroeconomic statistics for policy research or forecasting.
- Automate periodic updates of economic datasets in a pandas-based analysis pipeline.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Fetches macroeconomic and factor data from remote sources like FRED, Fama/French, World Bank, and OECD, returning it as pandas DataFrames.
Yes. Low install friction, active maintenance, no known vulnerabilities, permissive license, and a focused scope make it a reliable choice for fetching macroeconomic data into pandas workflows. Install it if you need programmatic access to FRED, Fama/French, World Bank, or similar sources; skip it if you only need ad-hoc manual downloads or work with proprietary data feeds.
Install
pandas-datareader on PyPI
pip
pip install pandas-datareaderuv
uv add pandas-datareaderpoetry
poetry add pandas-datareaderInstalling pandas-datareader
Before you install
Low friction: pure Python wheel with four runtime dependencies (lxml, pandas, requests, setuptools). Active maintenance—last commit 2026-07-21, released 2026-06-24, 51 days ago.
License in practice
BSD-3-Clause (permissive): you can use, modify, and distribute freely in commercial or private projects, provided you include the license text and do not hold the authors liable.
Quickstart
pip install pandas-datareader
import pandas_datareader as pdr
data = pdr.get_data_fred('GS10')
Requires Python 3.11 or later; pandas>=1.5.3 must be installed first.
Verify before relying
- Whether all advertised data sources (FRED, Fama/French, Bank of Canada, World Bank, OECD, Eurostat) are currently functional and up-to-date.
- Performance characteristics when fetching large datasets or making many concurrent requests.
- Rate limits or authentication requirements for specific data providers.
Package facts
| License | BSD-3-Clause (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — lxml, pandas, requests, setuptools |
| Maintenance | actively maintained — 51 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,276,123/month — #4,125 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pandas_datareader-0.11.1-py3-none-any.whl
Tags
More Scientific/Engineering packages
NumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
pandaspandas provides fast, flexible data structures…
permissive · top 100 on PyPI
scipyscipy provides numerical algorithms for…
permissive · top 100 on PyPI
scikit-learnscikit-learn provides a comprehensive Python…
permissive · top 1,000 on PyPI
dilldill extends Python's pickle module to…
permissive · top 1,000 on PyPI
multiprocessMultiprocess is an enhanced fork of Python's…
permissive · top 1,000 on PyPI
fredapifredapi wraps the FRED web service to fetch…
unclear · top 5,000 on PyPI
wbdataWbdata provides a Python interface to query and…
copyleft · top 5,000 on PyPI
openbb-economyProvides access to global macroeconomic data…
agpl · top 15,000 on PyPI
finance-datareaderFetches historical and current financial…
permissive · top 15,000 on PyPI
openbb-fredIntegrates FRED (Federal Reserve Economic Data)…
agpl · top 15,000 on PyPI
wbgapiWBGAPI provides a Python interface to query…
permissive · top 15,000 on PyPI
newtoolsProvides libraries for processing large data…
permissive · top 15,000 on PyPI
openbb-federal-reserveIntegrates Federal Reserve data sources into…
agpl · top 15,000 on PyPI
openbb-econdbIntegrates EconDB economic data into the OpenBB…
agpl · top 15,000 on PyPI