Skip to main content

Python package for creating messy data.

Project description

Untidy

A Python library for uncleaning your dataset.

Check status

Overview

Have you ever wondered how to introduce specific problems to your clean data? Now you can apply our out-of-the-box solution to untidy your data according to your needs.

The solution can be used primarily for educational purposes, where clean example data is made more realistic.

Real world data is often poised with missing values, datetime issues, data type mismatches, string encoding problems.

You can introduce the following problems to your data:

  • Adding missing values
  • Adding outliers
  • Changing the encoding of strings
  • Changing the data type of numeric columns to strings
  • Adding duplicate rows
  • Adding duplicate columns
  • Adding extra characters to strings

The package is designed to work with pandas DataFrames.

from untidy import untidyfy
messy_df = untidyfy(clean_df, 
                    corruption_level=4, # how much mess you want (0-10)
                    nans=True,
                    outliers=True,
                    text_noise=True,
                    mess_with_numbers=True,
                    mess_with_string_encodings=True,
                    duplicate_rows=True,
                    duplicate_columns=True)

Installation

Can be installed via directly via pip or by downloading the untidy-{release-version}.tar.gz file under release section. Run the command

pip install `untidy-{release-version}.tar.gz`

DAIN logo

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

untidy-0.0.1a2.tar.gz (5.5 kB view details)

Uploaded Source

File details

Details for the file untidy-0.0.1a2.tar.gz.

File metadata

  • Download URL: untidy-0.0.1a2.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for untidy-0.0.1a2.tar.gz
Algorithm Hash digest
SHA256 98519676853d4a694df8ad5efe5be831d3f0fd1e2eff0b27063d118781d8a603
MD5 df6b06b4def724796f965ae66abfc461
BLAKE2b-256 0aeb31ce47ed426490325c8bb96f7edfbc3641f071421f16aac70f2a62b4e519

See more details on using hashes here.

Supported by

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