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')]),
]);
New Version
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
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 minimonolith_schema-0.3.4.tar.gz.
File metadata
- Download URL: minimonolith_schema-0.3.4.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1742583e0712f0e3062fbca91b11d07a293f3436749e234af983763b59ba886
|
|
| MD5 |
31c19347ab77d41f9da9a826f02d562d
|
|
| BLAKE2b-256 |
851f7b89abd967baf1dc5d75e3c465fbf96056aea43935fbc44959904e73c2cb
|
File details
Details for the file minimonolith_schema-0.3.4-py3-none-any.whl.
File metadata
- Download URL: minimonolith_schema-0.3.4-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04501e49dcc552072a3c9c0189a6f8c61d66d6a41b829e65c7ae138fbda3ca24
|
|
| MD5 |
fa28302cf8a96902b042499fdc94f775
|
|
| BLAKE2b-256 |
e49dca2bd9924dce9b5ef6d074ce02dd08e7d1f5e21ee67ebedc4bd5883e8777
|