You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[heavy_tails] World Bank Data retrieval Unreliable #547
nbclient.exceptions.CellExecutionError: Anerroroccurredwhileexecutingthefollowingcell:
------------------# get gdp and gdp per capita for all regions and countries in 2021variable_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.
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:
But despite the warning, all codes run perfectly and output is the same as we see in the lecture notes.
Activity
bishmaybarik commentedon Aug 5, 2025
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:
But despite the warning, all codes run perfectly and output is the same as we see in the lecture notes.