Skip to main content

[![Build Status](https://travis-ci.org/ivco19/libs.svg?branch=master)](https://travis-ci.org/ivco19/libs) [![Python 3](https://img.shields.io/badge/python-3.7+-blue.svg)](https://badge.fury.io/py/arcovid19) [![BSD-3](https://img.shields.io/badge/License-BSD3-blue.svg)](https://tldrlegal.com/license/bsd-3-clause-license-(revised)) This libraries contains the utilities to access different databases of COVID-19 data from the IATE task force. ## Installation ```bash $ pip install arcovid19 ```

Project description

ivco19 Libraries repo

Build Status Python 3 BSD-3

This libraries contains the utilities to access different databases of COVID-19 data from the IATE task force.

Installation

$ pip install arcovid19

Authors

  • Dr. Juan B Cabral (CIFASIS-UNR, IATE-OAC-UNC).
  • Sr. Mauricio Koraj (Liricus SRL.).
  • Lic. Vanessa Daza (IATE-OAC-UNC, FaMAF-UNC).
  • Dr. Mariano Dominguez (IATE-OAC-UNC, FaMAF-UNC).
  • Dr. Marcelo Lares (IATE-OAC-UNC, FaMAF-UNC).
  • Mgt. Nadia Luczywo (LIMI-FCEFyN-UNC, IED-FCE-UNC, FCA-IUA-UNDEF)
  • Dr. Dante Paz (IATE-OAC-UNC, FaMAF-UNC).
  • Dr. Rodrigo Quiroga (INFIQC-CFQ, FCQ-UNC).
  • Dr. Martín de los Ríos (ICTP-SAIFR).
  • Dr. Bruno Sanchez (Department of Physics, Duke University).
  • Dr. Federico Stasyszyn (IATE-OAC, FaMAF-UNC).

Functionalities

def load_cases(*, url=TABLA_URL, orientation='wide', out=None)

Utility function to parse all the actual cases of the COVID-19 in Argentina.

Raw Data

Parameters

url: str The url for the excel table to parse. Default is ivco19 team table

orientation: str, 'wide' or 'long' The format of the table. If wide, dates are going to be columns. If in turn, long, dates are going to be rows, regions are going to be columns. Under the hood is callin df.transpose() method from Pandas.

out: str, path to store the dataset or None. The dataset was stored as csv file. If its None the dataset was not stored.

Returns

df_infar: Pandas.DataFrame object

A table parsing the Excel file spreadsheet 0 (called BD).
It features a pandas multi index, with the following hierarchy:
    level 0: cod_provincia - Argentina states
    level 1: cod_status - Four states of disease patients (R, C, A, D)

Notes

All by default all the values are cached for 1hr. Tho change the time set the variable arcovid19.CACHE_EXPIRE to your desired time in seconds.

To clear all the cache run arcovid19.CACHE.clear()

Afiliations:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for arcovid19, version 2020.3.24
Filename, size File type Python version Upload date Hashes
Filename, size arcovid19-2020.3.24.tar.gz (9.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page