Episuite: epidemiology in Python
I’m proud to announce Episuite, an open-source project with a suite of tools and components for epidemiology in Python. It is an initiative trying to fill the gap that we have in the Python ecosystem for epidemiology frameworks.
Documentation: https://perone.github.io/episuite/
Repository: https://github.com/perone/episuite
Hi Christian,
Well done for your work. I came across a project you did a few years ago about GIS in Brazil, and if possible, I would like to ask you some questions. Could you give me your contact or email me, please?
Cheers,
Raquel
Hi! I have been trying to use Episute for loading the Facebook Movement Range data but it only works for year 2020. Data starting from 1 january 2021 is not being loaded. In my case I used ITA as country code but using BRA which was the one in the example doesn’t change the result. Any idea on how I can solve this?
Thanks
Hi.
I’m trying to run the code for Covid, but I’m getting the error
result = client.get_survey_range(“Brazil”, “Rio Grande do Sul”,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\lrp4\AppData\Local\Programs\Python\Python311\Lib\site-packages\episuite\mobility\facebook.py”, line 83, in get_survey_range
df[“percent_cli_95_upper_ci”] = (df.percent_cli + (1.96 * df.cli_se)) * 100.0
^^^^^^^^^^^^^^
File “C:\Users\lrp4\AppData\Local\Programs\Python\Python311\Lib\site-packages\pandas\core\generic.py”, line 5902, in __getattr__
return object.__getattribute__(self, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: ‘DataFrame’ object has no attribute ‘percent_cli’
Any clues of what’s missing? Thanks!
Hey Luciana ! This seems to be due to a change in the Facebook dataset on their side, they might have changed the column names.
Yes, I found out the problem. They changed percent_cli to pct_covid, and I’m replacing covid_se with cli_se, although the numbers for this one are slightly different. It does the job for now. Great package. You should consider registering it at least as a DOI. 🙂
Thank you Luciana, I added a DOI sometime ago (https://zenodo.org/record/4646183#.ZBl1suzP1CQ). Let me know if you see any other issues that I can fix and feel free to push any PR there (https://github.com/perone/episuite). Thanks again !