Skip to main content

DataForgeML

Ask DeepWiki

Automated data profiling and splitting pipeline for ML datasets.

DataForgeML inspects your dataset, detects each column's semantic type (numeric, categorical, boolean, text, datetime, or identifier), computes per-column statistics and missingness, and produces a structured result ready for downstream feature engineering — no manual schema wrangling required.

Installation

pip install dataforge-ml

Quick Start

from dataforge_ml import DataLoader, PipelineConfig, StructuralProfiler

df = DataLoader().load("titanic.csv")

config = PipelineConfig()
result = StructuralProfiler(config).profile(df)

print(result.columns["Age"].semantic_type)  # SemanticType.Numeric
print(result.dataset.row_count)             # total rows

DataLoader auto-detects encoding and delimiter. Supported formats: CSV, TSV, Parquet, JSON, NDJSON, JSONL, XLSX, XLS, Arrow, Feather.

Column Type Overrides

Override the auto-detected type for any column before profiling:

config = PipelineConfig()
config.set_column_type("PassengerId", "identifier")           # skip stats entirely
config.set_column_type(["Survived", "Pclass"], "categorical")

result = StructuralProfiler(config).profile(df)

To drop a column from all processing entirely, use add_exclusion:

config = PipelineConfig()
config.add_exclusion(["PassengerId", "Name"])

Splitting

from dataforge_ml import DataLoader, DataSplitter

df = DataLoader().load("titanic.csv")
splitter = DataSplitter(df, target="Survived", random_seed=42)

# Random train/test split (stratified by default when target is set)
split = splitter.random_split(test_size=0.2)
print(split.train.shape, split.test.shape)

# Chronological split (no temporal leakage)
split = splitter.time_split(time_column="date", test_size=0.2)

# K-fold cross-validation
for fold in splitter.kfold(k=5):
    print(f"Fold {fold.fold_index}: train={fold.train_size}, val={fold.val_size}")

License

MIT

Metadata

Release files for dataforge-ml 2.0.3

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

Source distribution (sdist)

Source distribution for dataforge-ml 2.0.3
File Size Uploaded
dataforge_ml-2.0.3.tar.gz 116.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dataforge-ml 2.0.3
File Interpreter ABI Platform
dataforge_ml-2.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 256.7 kB

Release files / dataforge_ml-2.0.3.tar.gz

Download URL dataforge_ml-2.0.3.tar.gz
Size 116.9 kB
Tags Source
SHA-256 checksum
How to use checksums
958de9a048024c4cc9e6469e982b278ae9d80bcb1f1123c5532f1d5a71d13288
BLAKE2b-256 checksum
How to use checksums
0f8495acb68ab91b7c5fd18c20424c40a3c27dc9acc76fec6f63e0b8a01b306c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 1, 2026.

Transparency log

Release files / dataforge_ml-2.0.3-py3-none-any.whl

Download URL dataforge_ml-2.0.3-py3-none-any.whl
Size 139.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
70b7f0ea5c2b604da1f81c524c6058cb82217574591d0c19ae4d08dcdfdf31dd
BLAKE2b-256 checksum
How to use checksums
7c76a8a5191f939e9634c6554beb09a23abae7254abf153c933ef011988a4395
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 1, 2026.

Transparency log

Release history Release notifications | RSS feed

3.3.0

2 release files

3.2.0

2 release files

3.1.1

2 release files

3.1.0

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.9

2 release files

2.0.8

2 release files

2.0.7

2 release files

2.0.6

2 release files

2.0.5

2 release files

2.0.4

2 release files

This release

2.0.3 This release

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.11.0

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

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