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

`wb.data.DataFrame()` generates a warning message #23

Closed spring-haru closed 2 years ago

spring-haru commented 2 years ago

I tried wbgapi/examples/wbgapi-quickstart.ipynb. The function

wb.data.DataFrame()

generates the following warning

FutureWarning: The default dtype for empty Series will be 'object' instead of 'float64' in a future version. Specify a dtype explicitly to silence this warning.
  dummy = pd.Series()    # empty series - never assigned actual values
tgherzog commented 2 years ago

Thanks for the pull request. I've incorporated in the latest release