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.0.tar.gz (24.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.0-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyzdc-0.6.0.tar.gz
  • Upload date:
  • Size: 24.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.0.tar.gz
Algorithm Hash digest
SHA256 cc3e37e451dd1cdaed8f6f9dd4bfc72f66055b452273028577f36429b6a5641a
MD5 2f4570eb63fcc4af80fb9b3f39176cd3
BLAKE2b-256 e5eaab6aaef029ea9c56eef10b10d19a21c824974cd6ab70019a82bcb57bafdd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyzdc-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 21.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b54a9e3b2cec3a5053a3e62aebb766fec32f660a2cd35fe8489090dbc9e230f7
MD5 38ffe7eea4dfc21b7bb0b7fe3642b72a
BLAKE2b-256 65dde4de55eba38d6db71dcc9e8d7b01ca073b59d4639c9525849007e04bae1b

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