I’m running the following code to retrive data from OECD:
import datetime
import pandas as pd
import pandas_datareader.data as web
start_date = datetime.datetime(2013, 12, 31)
end_date = datetime.datetime(2023, 12, 31)
#SPECIFIC DATABASE WITHIN OECD API
database = 'MEI_FIN'
df1 = web.DataReader(database, 'oecd', start_date, end_date)
df1
I’m reciving the following error:
File D:conda3Libsite-packagespandas_datareaderiojsdmx.py:44, in read_jsdmx(path_or_buf)
41 else:
42 data = json.loads(jdata, object_pairs_hook=OrderedDict)
---> 44 structure = data["structure"]
45 index = _parse_dimensions(structure["dimensions"]["observation"])
46 columns = _parse_dimensions(structure["dimensions"]["series"])
KeyError: 'structure'
In general, I’m having huge troubles with trying to retrive data from OECD via python, almost very thing that I tried is not working. I would gladly reicve some tips for how should I approch this issue.
Thanks!
New contributor
Faust Von is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.