Closed wochner closed 6 years ago
I can reproduce. I'll take a look
Alright, this is a fun one: the series ''IC.ISV.CPI' returns two values for items with the name 'Mexico - Mexico City'. One has the id PK, the other has the id MX. To make things worse, multiple cities have the key MX. I'm not sure how to handle this in accordance with the Law of Least Astonishment. What behavior do you think would be least surprising? I could:
I hate option 1 least, though it would be a nontrivial change for current users.
Thanks for looking into it. Would it be an option to exclude subnational data? A number of other world bank data sets have only data on the national level. Or, make it optional to include subnational data?
It looks like this has been fixed in the API itself.
Running the indicators
{u'IC.CRD.INFO.XQ': u'Depth of credit information index (0=low to 8=high)', u'IC.ISV.CPI': u'Creditor participation index (0-4)'}
in the function
df = wbdata.get_dataframe(indicators, convert_date=True)
returns a "cannot handle a non-unique multi index error". Running the two indicators seperately works fine.
Is this a bug or misspecification from my side?
ExceptionTraceback (most recent call last)