Skip to main content

High-performance data profiling for pandas/pyarrow DataFrames

Project description

DataForge Profile

High-performance data profiling for Python, powered by Rust.

Installation

pip install dataforge-profile

Usage

import pandas as pd
from dataforge_profile import profile

# Profile a pandas DataFrame
df = pd.DataFrame({
    "id": range(1_000_000),
    "name": [f"user_{i}" for i in range(1_000_000)],
    "email": [f"user{i}@example.com" for i in range(1_000_000)],
    "age": [25] * 1_000_000,
})

result = profile(df)

# Access column statistics
print(result["columns"]["id"]["mean"])  # ~500000
print(result["columns"]["email"]["inferred_type"])  # "email"

Benchmark

Profiling 1M rows:

Tool Time Memory
ydata-profiling ~12s ~500MB
dataforge-profile ~0.14s ~50MB

~85x faster, 10x less memory

Requirements

  • Python 3.9+
  • pandas >= 1.5 or pyarrow >= 12.0

License

Apache 2.0

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dataforge_profile-0.1.0-cp39-cp39-macosx_11_0_arm64.whl (628.0 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

Details for the file dataforge_profile-0.1.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dataforge_profile-0.1.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c763e4eb8aae3ea3ab87baf502f1dc624d61c64b7d0c4c36b0b26c3ac2b48003
MD5 c9843deca1710ca4b1b106f8633db2d6
BLAKE2b-256 b2c35356c550bf16c43d4fd6a1b9a9adeb229fe29ab650566152c4181f708cba

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