Skip to main content

PyZDC is a Python package designed to facilitate the extraction, transformation, and analysis of epidemiological data related to Dengue, Zika, and Chikungunya.

Project description

PyZDC

CI License CI

PyZDC is a Python tool designed to simplify the analysis of epidemiological data related to the Aedes aegypti, focusing on diseases such as Dengue, Zika, and Chikungunya. It is fast, extensible, and easy to use.


Features

  • Automated extraction of epidemiological data.
  • Data transformation and validation using DuckDB and Pandera.
  • Specific functions to access processed tables, including notifications, personal data, clinical signs, and more.
  • Fully compatible with Python 3.12+.

Installation

Install the package via pip:

pip install pyzdc

Install the package using uv or poetry:

# uv
uv add pyzdc

# poetry
poetry add pyzdc

Quick Example

Here’s a quick example to get you started:

import pandas as pd
import pyzdc as zdc

# Fetch notification data for Chikungunya cases in 2022 and 2023
df = zdc.get_notifications(years=[2022, 2023], disease="CHIK")

# Display the first few rows
print(df.head())

# Save the DataFrame to a CSV file
df.to_csv("notifications.csv", index=False)

This will output something like:

       notification_id    notification_type  disease_condition_id      notification_date    notification_week    notification_year    notification_state_id    notification_city_id    notification_region_id    notification_health_unit_id 
  0                  1                    2  A92.0                              20220108               202201                 2022                       12                  120033                  1941                            9542566 
  1                  2                    2  A92.0                              20220216               202207                 2022                       12                  120033                  1941                            9542566 
  2                  3                    2  A92.0                              20220126               202204                 2022                       12                  120033                  1941                            9542566 
  3                  4                    2  A92.0                              20220108               202201                 2022                       12                  120033                  1941                            9542566 
  4                  5                    2  A92.0                              20220126               202204                 2022                       12                  120033                  1941                            2000083 

Help

For more information, see the documentation.


Contributing

Contributions are welcome! Follow these steps to contribute:

1. Fork the Repository

Create a fork of the repository in your GitHub account.

2. Clone the Repository

Clone your fork locally:

git clone https://github.com/your-username/dq-sus.git
cd dq-sus

3. Create a Branch

Create a branch for your changes:

git checkout -b feature-name

4. Install Dependencies

Install the required dependencies using pip or uv:

pip install -r requirements.txt

5. Make Changes and Test

Implement your changes and ensure all tests pass:

pytest

6. Commit and Push

Commit your changes and push to your fork:

git add .
git commit -m "Add feature description"
git push origin feature-name

7. Open a Pull Request

Submit a pull request to the dev branch of the original repository.


Security

To report security vulnerabilities, please review our security policy.


License

This project is licensed under the MIT License.

Project details


Download files

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

Source Distribution

pyzdc-0.6.1.tar.gz (81.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyzdc-0.6.1-py3-none-any.whl (79.8 kB view details)

Uploaded Python 3

File details

Details for the file pyzdc-0.6.1.tar.gz.

File metadata

  • Download URL: pyzdc-0.6.1.tar.gz
  • Upload date:
  • Size: 81.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for pyzdc-0.6.1.tar.gz
Algorithm Hash digest
SHA256 434efab9a704192c66ebb4d78cf621062261ff9d6e2b8acbcda687cf24f2b3fe
MD5 03848922cc486e3900fdc40d81636f0c
BLAKE2b-256 52ec5498d4e6f11e3ebddb69a0b14591b603dd1918749a22d474876275d9ab92

See more details on using hashes here.

File details

Details for the file pyzdc-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: pyzdc-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 79.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for pyzdc-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 931382e414cefd1784acc147ec194182d1f3ad2f3556522c3435cdaab9cd5c39
MD5 a1c1ac447b21f7b75ad175e6ab0a4254
BLAKE2b-256 465cf1f9f9acd4bcd2bcba219f1b848ebefad794c71a7a98035a33030d4c6980

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page