Skip to main content

DatCh

The DatCh data checker checks data files for any inconsistancies.

DatCh currently checks for:

  • nan values
  • white space in strings
  • CAPS errors
  • data types

Usage:

# check a pandas DataFrame
import pandas as pd
import datch

df = pd.DataFrame({
    'id': [0,1,'x',3,4,5,'y',7,None,9],
    'name': ['Rose', 'Lily', 'Tulip', 'Orchid', 'Carnation', 'Freesia', 3.14159265, 'Gladiolus', 'Anemone', 'Daffodil'],
})

datch.errors.nan(df['id'])
>> DataError(error_type='nan error', errors=1, values=10, error_ratio=0.10)

datch.errors.dtype(df['id'])
>> DataError(error_type='data type error', errors=3, values=10, error_ratio=0.30)

datch.errors.dtype(df['name'])
>> DataError(error_type='data type error', errors=1, values=10, error_ratio=0.10)

datch.check('data/data.xlsx')
>> DatCh is done! The output file is saved as /data/data_datched.xlsx

Wish list as optional checks:

  • zero values (or maybe not)
  • outliers (np.abs(float value) > mean + 3 * np.std)

Metadata

Release files for datch 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datch 0.1.4
File Size Uploaded Provenance
datch-0.1.4.tar.gz 3.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for datch 0.1.4
File Interpreter ABI Platform
datch-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 20.8 kB

Release files / datch-0.1.4.tar.gz

Download URL datch-0.1.4.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d21e8407e0e8ec93f28989ef051c92bcf3410fdddba3c371a567f894d960e640
BLAKE2b-256 checksum
How to use checksums
eed9472e51da4e03e39828e139077919c08b596448bf561aeed909aaa1a4c377
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Release files / datch-0.1.4-py3-none-any.whl

Download URL datch-0.1.4-py3-none-any.whl
Size 16.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e036055c449c6a5f75a09cc9f61b6fe52580d80cd2544a6e6a612ee56037cc04
BLAKE2b-256 checksum
How to use checksums
2e83e3142051226f1fc3519d693c67684e448fc6f168ad5a34e4ba73d6fb8bb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Security for datch 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page