Linkage determinístico de alta performance para dados de saúde pública brasileiros
Project description
vitallinkage
Linkage determinístico de alta performance para dados de saúde pública brasileiros.
Instalação
pip install vitallinkage
Uso
import polars as pl
from vitallinkage import iniciar_linkage, regras_linkage, meio_de_campo
df = pl.DataFrame({
"nome": ["Ana", "Ana", "Bruno"],
"nascimento": ["2000-01-01", "2000-01-01", "1995-05-05"],
"cns": ["12345", None, "99999"],
})
# Passo 1: linkage inicial pela regra mais forte
df = iniciar_linkage(df, variaveis=["nome", "nascimento"])
# Passo 2: regras adicionais
df = regras_linkage(df, variaveis=["cns"], num_regra=2)
Funções
| Função | Descrição |
|---|---|
iniciar_linkage(df, variaveis) |
Primeira regra de linkage — gera par_1 e par_c1 |
regras_linkage(df, variaveis, num_regra) |
Regras adicionais — gera par_cN e atualiza par_1 |
meio_de_campo(df, max_iter) |
Fechamento transitivo sobre par_1/par_2 |
Desenvolvimento
pip install -e ".[dev]"
pytest tests/ -v
Build e publicação
pip install build twine
python -m build
twine upload dist/vitallinkage-0.1.2-py3-none-any.whl
Autores
- Erik Luan Costa Santos
- Arthur Lorenzi Almeida
- Renato Azeredo Teixeira
- Olivia Landi C. Guaranha
Licença
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vitallinkage-0.1.2.tar.gz
(6.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vitallinkage-0.1.2.tar.gz.
File metadata
- Download URL: vitallinkage-0.1.2.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d4bd591863521143cf91a6e483e5fe6336513985aa4943b809893b2f72b1281
|
|
| MD5 |
6b8eb34d905102a81e986da7631922dc
|
|
| BLAKE2b-256 |
66c0dbee5a0f41d17033863dec9425debd9b99ad25090488d83e14117f682188
|
File details
Details for the file vitallinkage-0.1.2-py3-none-any.whl.
File metadata
- Download URL: vitallinkage-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a208cf48e9a2ceaa54c3415d84cd3bc346dd23d1c89e3d86a085bbd5353ce490
|
|
| MD5 |
a183d01f9e621f2b52b8daadd58ffd56
|
|
| BLAKE2b-256 |
597397f868c42be72dc02fcf2742089198532673da8e572bac8dff170f977126
|