Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evaluate alternatives to pandas-datareader for downloading World Bank data #987

Open
spjuhel opened this issue Dec 13, 2024 · 0 comments
Open
Labels
accepting pull request Contribute by raising a pull request to resolve this issue! dependencies

Comments

@spjuhel
Copy link
Collaborator

spjuhel commented Dec 13, 2024

Is your feature request related to a problem? Please describe.
The pandas-datareader package has not been updated since 2021-07-13 and is now breaking with Python 3.12 and newer versions due to the removal of distutils. This package is currently used in util.finance.py for downloading World Bank data and in related tests.

Describe the solution you'd like
Identify and migrate to an alternative for downloading World Bank data. The steps could include:

  1. Researching viable replacements for pandas-datareader, such as wbdata (see here) or direct API usage via libraries like requests or pandas.
  2. Refactoring util.finance.py to use the new solution.
  3. Updating related tests to ensure compatibility with the new implementation.

Describe alternatives you've considered

  • Continuing to use pandas-datareader by forking and maintaining a private version. However, this would increase the maintenance burden on the project.
  • Temporarily patching the current implementation to support Python 3.12 and beyond, though this is not a sustainable long-term solution.

For reference, a related issue in pandas-datareader highlights these problems: pydata/pandas-datareader#977

@spjuhel spjuhel added dependencies accepting pull request Contribute by raising a pull request to resolve this issue! labels Dec 13, 2024
@spjuhel spjuhel changed the title Evaluate Alternatives to pandas-datareader for Downloading World Bank Data Evaluate alternatives to pandas-datareader for downloading World Bank data Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepting pull request Contribute by raising a pull request to resolve this issue! dependencies
Projects
None yet
Development

No branches or pull requests

1 participant