Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey :)
First, thank you very much for your work with Our World in Data. It rocked from day 1 and helped me a lot to understand the pandemic when it started out.
This pull-request is a proposal to streamline the pipelines.
It leverages higher-level Pandas APIs that allow decomposing said pipelines in series of functional steps.
Since steps are decoupled, they are easier to reason about, test, and reuse (e.g. in notebooks for explorations or development or across pipelines). Also, it limits mutable states to a minimum.
Probably it also makes it easier to scan through files to find patterns and set and enforce behaviors across pipelines.
Also, it adds Python type hints, which make it easier to understand the code and leverage autocompletion and such.
If you think there is value in doing that, I can take care of all the pipelines.
Since it takes some time to do, I wanted your feedback on a proof of concept before refactoring all of them. 😄