Closed Bojangels closed 6 months ago
This is apparently an error upstream. http://api.worldbank.org/v2/country/MTQ gives the same error. Unfortunately, that means I can't do anything about it.
I see. Thank you for clarifying. It's an odd upstream error because you can still view Martinqiue here: https://info.worldbank.org/governance/wgi/Home/Reports and here https://databank.worldbank.org/reports.aspx?source=worldwide-governance-indicators#%60 (andeven export the data as MTQ).
Appreciate your work!
On Tue, Oct 27, 2020 at 10:03 AM Oliver Sherouse notifications@github.com wrote:
This is apparently an error upstream. http://api.worldbank.org/v2/country/MTQ gives the same error. Unfortunately, that means I can't do anything about it.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/OliverSherouse/wbdata/issues/64#issuecomment-717265599, or unsubscribe https://github.com/notifications/unsubscribe-auth/APF4ANU5TGPBNCUVYP7ZUVLSM3HJXANCNFSM4TAD2NUQ .
A query using wbdata does not return data, despite it being available on the WB website. For example, compare:
https://databank.worldbank.org/reports.aspx?source=worldwide-governance-indicators#`
With the following script:
import wbdata
data_dates = (datetime.datetime(2019,1,1), datetime.datetime(2019,1,1))
MTQ_missing = wbdata.get_dataframe({'PV.EST':'values'}, country=('MTQ'), data_date=data_dates, convert_date=False, keep_levels=True)
Which returns:
IndexError Traceback (most recent call last) /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wbdata/fetcher.py in fetch(url, args, cache) 123 try: --> 124 results.extend(response[1]) 125 this_page = response[0]["page"]
IndexError: list index out of range
During handling of the above exception, another exception occurred:
RuntimeError Traceback (most recent call last)