tgherzog / wbgapi

Python module that makes using the World Bank's API a lot easier and more intuitive.
MIT License
140 stars 31 forks source link

Seychelles not included in SSA #28

Closed bpstewar closed 1 year ago

bpstewar commented 1 year ago

When querying selected indicators I noticed Seychelles is not included in the wb.region.members('SSA').

tgherzog commented 1 year ago

That's because Seychelles is classified as high income. Use SSF.

>>> wb.economy.info('SYC')
id    value       region    incomeLevel
----  ----------  --------  -------------
SYC   Seychelles  SSF       HIC
      1 elements
>>> wb.region.info(['SSA','SSF'])
code    name
------  ------------------------------------------
SSA     Sub-Saharan Africa (excluding high income)
SSF     Sub-Saharan Africa
        2 elements