Exploring the Quandl data source
Quandl is one of the largest repositories of economic/financial data on the internet. Its data sources can be accessed free of charge. It also offers premium data sources, for which there is a charge.
Installation is straightforward:
pip install quandl
To access the data, you have to provide an access key (apply for one at https://quandl.com):
import quandl quandl.ApiConfig.api_key = 'XXXXXXX'
To find a ticker and data source, use https://www.quandl.com/search.
Let's now download the Monthly average consumer prices in metropolitan France - Apples (1 Kg); EUR
data:
papple = quandl.get('ODA/PAPPLE_USD') papple Value Date 1998-01-31 1.735999 ... ... 2020-11-30 3.350000 275 rows × 1 columns
Let&apos...