diff --git a/README.md b/README.md index 45fa7c8..58c15ce 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 @@ -54,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 @@ -138,30 +137,10 @@ 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 -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]: