Skip to content

[heavy_tails] World Bank Data retrieval Unreliable #547

Open

Description

@mmcky

The code cell

nbclient.exceptions.CellExecutionError: An error occurred while executing the following cell:
------------------
# get gdp and gdp per capita for all regions and countries in 2021

variable_code = ['NY.GDP.MKTP.CD', 'NY.GDP.PCAP.CD']
variable_names = ['GDP', 'GDP per capita']

df_gdp1 = extract_wb(varlist=variable_code, 
                     c="all_countries", 
                     s="2021", 
                     e="2021", 
                     varnames=variable_names)
df_gdp1.dropna(inplace=True)
------------------

keeps timing out. Perhaps we need to bring this dataset in-house.

Activity

  1. bishmaybarik commented on Aug 5, 2025

    @bishmaybarik
    Member

    Hi @mmcky, I checked this once again and I don't seem to find any time-out issues anymore. I have checked it on Colab, it runs perfectly there, as well as on Jupyterlab where the data is imported successfully and all operations follow up well. However, I think this warning should also be looked at:

    Image

    But despite the warning, all codes run perfectly and output is the same as we see in the lecture notes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions