https://github.com/pydata/pandas-datareader
Extract data from a wide range of Internet sources into a pandas DataFrame.
https://github.com/pydata/pandas-datareader
data data-analysis dataset econdb economic-data fama-french finance financial-data fred html pandas pydata python stock-data
Last synced: 12 days ago
JSON representation
Extract data from a wide range of Internet sources into a pandas DataFrame.
- Host: GitHub
- URL: https://github.com/pydata/pandas-datareader
- Owner: pydata
- License: other
- Created: 2015-01-15T00:34:19.000Z (almost 12 years ago)
- Default Branch: main
- Last Pushed: 2026-07-21T08:28:05.000Z (4 months ago)
- Last Synced: 2026-11-16T18:18:14.465Z (13 days ago)
- Topics: data, data-analysis, dataset, econdb, economic-data, fama-french, finance, financial-data, fred, html, pandas, pydata, python, stock-data
- Language: Python
- Homepage: https://pydata.github.io/pandas-datareader/stable/index.html
- Size: 14.1 MB
- Stars: 3,282
- Watchers: 136
- Forks: 697
- Open Issues: 149
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-python - pydata/pandas-datareader - Extract data from a wide range of Internet sources into a pandas DataFrame. (Machine Learning and AI / Data Science and Analytics)
- awesome-python-machine-learning-resources - GitHub - (๐จโ๐ป 85 ยท ๐ 590 ยท ๐ 500 - 20% open ยท โฑ๏ธ 16.03.2022): (ๆฐๆฎ่ฏปๅไธๆๅ)
- awesome-quant - pandas-datareader - Python module to get data from various sources (Google Finance, Yahoo Finance, FRED, OECD, Fama/French, World Bank, Eurostat...) into Pandas datastructures such as DataFrame, Panel with a caching mechanism. (Python / Data Sources)
- awesome_time_series_in_python - pandas-datareader - Pulls financial data from different sources (e.g. yahoo, google, Quandl) (Examples or singular models)
- awesome-quant - pandas-datareader - `Python` - Python module to get data from various sources (Google Finance, Yahoo Finance, FRED, OECD, Fama/French, World Bank, Eurostat...) into Pandas datastructures such as DataFrame, Panel with a caching mechanism. (Market Data & Data Sources)
- awesome-quant - github.com/pydata/pandas-datareader
- awesome-systematic-trading - pandas-datareader - |`Python`| - Up to date remote data access for pandas, works for multiple versions of pandas. (Data Source / Stocks and General)
- awesome-data-analysis - Pandas DataReader - Reads data from various online sources into pandas DataFrames. (๐ Python / Useful Python Tools for Data Analysis)
- awesome-prediction-markets - pandas-datareader
- awesome-hacking-lists - pydata/pandas-datareader - Extract data from a wide range of Internet sources into a pandas DataFrame. (Python)
- awesome-systematic-trading - pandas-datareader - Up to date remote data access for pandas, works for multiple versions of pandas. (Data Sources / General)
README
# pandas-datareader
Macroeconomic and factor-oriented remote data access for pandas.
[](https://github.com/pydata/pandas-datareader/actions/workflows/ci.yml)
[](https://pypi.python.org/pypi/pandas-datareader/)
[](https://codecov.io/gh/pydata/pandas-datareader)
[](https://pandas-datareader.readthedocs.io/en/latest/)
[](https://github.com/psf/black)
[](https://github.com/pydata/pandas-datareader/blob/main/LICENSE.md)
## Installation
Install using `pip`
``` shell
pip install pandas-datareader
```
## Usage
``` python
import pandas_datareader as pdr
pdr.get_data_fred('GS10')
```
The public API is focused on macroeconomic, policy, and factor-style data
sources such as FRED, Fama/French, Bank of Canada, World Bank, OECD,
Eurostat, and the new `pandas_datareader.macro` interface.
## Documentation
[Stable documentation](https://pydata.github.io/pandas-datareader/) is available on
[github.io](https://pydata.github.io/pandas-datareader/). A second copy of the stable
documentation is hosted on [read the docs](https://pandas-datareader.readthedocs.io/)
for more details.
[Development documentation](https://pydata.github.io/pandas-datareader/devel/) is available
for the latest changes in master.
### Requirements
Using pandas datareader requires the following packages:
- pandas>=1.5.3
- lxml
- requests>=2.19.0
- distutils (not included in standard library of Python 3.12 and above it, which can be solved by installing `setuptools`)
Building the documentation additionally requires:
- matplotlib
- ipython
- requests_cache
- sphinx
- pydata_sphinx_theme
Development and testing additionally requires:
- black
- coverage
- codecov
- coveralls
- flake8
- pytest
- pytest-cov
- wrapt
### Install latest development version
``` shell
python -m pip install git+https://github.com/pydata/pandas-datareader.git
```
or
``` shell
git clone https://github.com/pydata/pandas-datareader.git
cd pandas-datareader
python -m pip install -e .
```