Skip to main content

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


Download files

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

Source Distribution

minimonolith-schema-0.3.3.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

minimonolith_schema-0.3.3-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file minimonolith-schema-0.3.3.tar.gz.

File metadata

  • Download URL: minimonolith-schema-0.3.3.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for minimonolith-schema-0.3.3.tar.gz
Algorithm Hash digest
SHA256 165b3145cfe898b4bfc3fe7309d481cbb74831cdd600398581b6f3ecdc14550f
MD5 0cb869c75c4c498c5120370e845e9171
BLAKE2b-256 c1c55e5e0ba6911ba22933740d8644ac5159cc1e83637ceb35a67179f5d9a728

See more details on using hashes here.

File details

Details for the file minimonolith_schema-0.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for minimonolith_schema-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e9622992f4e2f76a04f5bed4eb3e3bffeef59788a091c556dcfd6848bfecb223
MD5 ddfc3c278a11624762e22ca555ec1adb
BLAKE2b-256 742ac2c359617950771e1bd000ce87b540d5e99a2e612c93b70b3c0a4b15bc92

See more details on using hashes here.

Supported by

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