Closed jdehning closed 4 years ago
So for example for "filter_one_country()" we want the output to be the described panda dataframe instead of an array?
I was thinking about rewriting the module to make it a bit more uncluttered.
Create a class for each source (e.g. john hopkins university).
That should make everything clearer and easily expandable for more sources and other data structures.
Would love some feedback on this proposal.
Sounds good! I could start working on it :)
Yep, one class per data source seems like a good idea.
A few comments:
I suppose that you meant to load it at the initialization of the object and not of the module. For this I see no problem. One could make an extra source argument in init if one already has the data downloaded locally.
I had now some time to look at what you have programmed. Some things that I would find good to change:
Make the data_retrieval module consistent: