Validation of data table columns
Project description
minimonolith-schema
minimonolith-schema
is a Python package that provides functionality for validating the columns of data tables.
Installation
Install the package via pip:
pip install minimonolith-schema
Usage
Here's a simple example on how to use minimonolith-schema
:
import pandas_schema as pds
from minimonolith_schema import validators
schema = pds.Schema([
pds.Column('Código Antiguo ', [pds.validation.CustomElementValidation(
lambda x: validators.match_code_or_null(x,
[r"^\d\d-\d\d\d$", r"^\d\d\d\d\d\d$"], ['No Aplica']), 'NOT_IN_PATTERNS')]),
pds.Column('Código Vigente', [pds.validation.CustomElementValidation(
lambda x: validators.in_int_interval(x, 100000, 300000), 'NOT_IN_PATTERNS')]),
pds.Column('Nivel de Atención', [pds.validation.CustomElementValidation(
lambda x: validators.in_category_or_null(x, ['Primario', 'Terciario', 'Secundario', 'terciario', 'Primario '],
['No Aplica', 'Pendiente']), 'NOT_IN_CATEGORY')]),
]);
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
Built Distribution
File details
Details for the file minimonolith-schema-0.3.0.tar.gz
.
File metadata
- Download URL: minimonolith-schema-0.3.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6acc4b7c8f3a8407836d6ed8048512d1b652263ac5ec6af5792dd9306c1d4ceb |
|
MD5 | 43bc6ab3f9c09b4d82ac669877169f5e |
|
BLAKE2b-256 | ad22143cad35ab87fbae98e4d9374bc9cbc2b7ba3f1ebff9cc68185a81207991 |
File details
Details for the file minimonolith_schema-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: minimonolith_schema-0.3.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d20a0e2da015b46b73690038097b68a7ec7030e847ea01a5452d8a075799c64e |
|
MD5 | 6510ff343f31a20633e73cc1f0f112c6 |
|
BLAKE2b-256 | 1dec8d1e6c23ec1f35d53c13b0a0a678bbd840d47c1d98f081ffddde1b013184 |