From 326dd74894928454c1e3def1394240daeafa932d Mon Sep 17 00:00:00 2001 From: Ana Paula Gomes Date: Thu, 3 Oct 2024 08:29:47 +0200 Subject: [PATCH 1/3] =?UTF-8?q?Remove=20m=C3=A9todo=20que=20n=C3=A3o=20exi?= =?UTF-8?q?ste=20read=5Fdbc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/README.md b/README.md index 45fa7c8..9ff06be 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ This package collects a set of utilities for handling with public databases published by Brazil's DATASUS The documentation of how to use PySUS can be found [here](http://pysus.readthedocs.io/en/latest/) -If you use PySUS for a publication, please use the bibtex below to cite it: +If you use PySUS for a publication, please use the bibtex below to cite it: ```bibtex @software{flavio_codeco_coelho_2021_4883502, author = {Flávio Codeço Coelho and @@ -26,7 +26,6 @@ If you use PySUS for a publication, please use the bibtex below to cite it: ## Features - - Decode encoded patient age to any time unit (years, months, etc) - Convert `.dbc` files to DBF databases or read them into pandas dataframes. DBC files are basically DBFs compressed by a proprietary algorithm. - Read SINAN dbf files returning DataFrames with properly typed columns @@ -138,26 +137,6 @@ datetime.date(2016, 4, 1) ``` -**Reading `.dbc` file:** - -```python ->>> from pysus.utilities.readdbc import read_dbc - ->>> df = read_dbc(filename, encoding='iso-8859-1') ->>> df.info() - -RangeIndex: 1239 entries, 0 to 1238 -Data columns (total 58 columns): -AP_MVM 1239 non-null object -AP_CONDIC 1239 non-null object -AP_GESTAO 1239 non-null object -AP_CODUNI 1239 non-null object -AP_AUTORIZ 1239 non-null object -AP_CMP 1239 non-null object -AP_PRIPAL 1239 non-null object -AP_VL_AP 1239 non-null float64 -... -``` Downloading and reading SINASC data: ```python From 183f85aac32238a3b59115d0057d1df2e3b3a59c Mon Sep 17 00:00:00 2001 From: Ana Paula Gomes Date: Thu, 3 Oct 2024 09:30:00 +0200 Subject: [PATCH 2/3] Fix clone address --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9ff06be..e2e0425 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ If you use windows, or for some other reason is not able to install PySUS on you First, clone the Pysus repository: ```bash -git clone https://github.com/fccoelho/PySUS.git +git clone https://github.com/AlertaDengue/PySUS.git ``` then from within the PySUS directory build the container From bbc061947c5492b1e7c7b7a13cebae6e40e87646 Mon Sep 17 00:00:00 2001 From: Ana Paula Gomes Date: Thu, 3 Oct 2024 09:31:37 +0200 Subject: [PATCH 3/3] Corrige import do SINASC --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e2e0425..58c15ce 100644 --- a/README.md +++ b/README.md @@ -140,7 +140,7 @@ datetime.date(2016, 4, 1) Downloading and reading SINASC data: ```python -In[1]: from pysus.online_data.sinasc import download +In[1]: from pysus.online_data.SINASC import download In[2]: df = download('SE', 2015) In[3]: df.head() Out[3]: