Skip to main content

CovidBr




PyPI - Downloads
CodeFactor Grade

Library for data mining about covid-19 in brazilian cities 📈📊📚


Installation

$ pip install covidbr -U

Examples

Get data from cities

import covidbr as cb
cb.show_console(True)

place = 'Juazeiro BA'
data_pet = cb.city(place)

getting the light data and working with it

dataset = data_city.dados
dados
             casos  mortos  mortes_diarias  casos_diarios  population
23/mar/2020      1       0               0              1      218162
24/mar/2020      2       0               0              1      218162
25/mar/2020      2       0               0              0      218162
26/mar/2020      2       0               0              0      218162
27/mar/2020      2       0               0              0      218162
...            ...     ...             ...            ...         ...
26/dez/2021  18752     417               0              0      218162
27/dez/2021  18752     417               0              0      218162
28/dez/2021  18752     417               0              0      218162
29/dez/2021  18752     417               0              0      218162
30/dez/2021  18752     417               0              0      218162

[648 rows x 5 columns]

getting the data of death's:

mortos = dataset['mortos']
mortos
23/mar/2020      0
24/mar/2020      0
25/mar/2020      0
26/mar/2020      0
27/mar/2020      0
              ... 
26/dez/2021    417
27/dez/2021    417
28/dez/2021    417
29/dez/2021    417
30/dez/2021    417
Name: mortos, Length: 648, dtype: int64

getting the data of case's:

casos = dataset['casos']
23/mar/2020        1
24/mar/2020        2
25/mar/2020        2
26/mar/2020        2
27/mar/2020        2
               ...  
26/dez/2021    18752
27/dez/2021    18752
28/dez/2021    18752
29/dez/2021    18752
30/dez/2021    18752
Name: casos, Length: 648, dtype: int64

getting the mortality percent:

perc_m = (mortos/casos)*100
perc_m
23/mar/2020    0.000000
24/mar/2020    0.000000
25/mar/2020    0.000000
26/mar/2020    0.000000
27/mar/2020    0.000000
                 ...   
26/dez/2021    2.223763
27/dez/2021    2.223763
28/dez/2021    2.223763
29/dez/2021    2.223763
30/dez/2021    2.223763
Length: 648, dtype: float64

Metadata

Release files for covidbr 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for covidbr 0.2
File Interpreter ABI Platform
covidbr-0.2-py3-none-any.whl Python 3 none any Details

Release files / covidbr-0.2-py3-none-any.whl

Download URL covidbr-0.2-py3-none-any.whl
Size 21.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82f46cc99ce3035f5e7f8045e0a09e4130622e59104c6ef300641de3b3c2b476
BLAKE2b-256 checksum
How to use checksums
3dd9709c8279465a0ab3ac988032dd8eea1072f71374ed020837463a6121d640
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.0.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Security for covidbr 0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page