Skip to main content

TabCamel

Test In Colab PyPI version Last Commit License Python 3.10+ Downloads

A DataFrame-focused solution for tabular datasets in machine learning workflows.

🎯 Features

  • TabularDataset: Comprehensive dataset class with sampling and splitting capabilities
  • Data Transformations: Scikit-learn compatible preprocessing transformations
  • Multi-source Loading: Support for local files and popular ML repositories
  • AutoGluon Integration: Seamless integration with AutoGluon for automated ML

🛠 Installation

pip install tabcamel

🚀 Quick Start

from tabcamel.data.dataset import TabularDataset

# Load a remote dataset
dataset = TabularDataset('iris', task_type='classification')

# Split into train/test sets
train_test = dataset.split('stratified', train_size=0.8)
train_data = train_test['train_set']
test_data = train_test['test_set']

print(train_data)

💽 Dataset Sources

TabCamel supports multiple data sources:

Remote Datasets

  • OpenML: 30+ popular datasets ('iris', 'adult', 'titanic', etc.)
  • UCI ML Repository: Classic datasets with proper metadata
  • scikit-learn: Built-in sklearn datasets ('diabetes', etc.)
  • pgmpy: Bayesian network datasets from pgmpy
  • bnlearn: datasets from bnlearn

Local Datasets

For local datasets, you have several options:

Option 1: Direct File Path

# Use full path to your dataset
dataset = TabularDataset('/path/to/your/data.csv', task_type='classification')

Option 2: Configure Data Directory

import tabcamel.utils.config as config

# Set up your data directory
local_dataset2path = {
    "local_data": "/path/to/your/data.csv",
}
config.set_local_data_path(local_dataset2path)

# Now use short names
dataset = TabularDataset('local_data', task_type='classification')

💻 Examples

Basic Usage

from tabcamel.data.dataset import TabularDataset

# Remote dataset
dataset = TabularDataset('adult', task_type='classification')

# Local dataset with full path
dataset = TabularDataset('/home/user/data/my_data.csv', task_type='regression')

# Local dataset with configured data directory
dataset = TabularDataset('my_data', task_type='classification')

Data Operations

# Dataset sampling
sample_result = dataset.sample('stratified', sample_size=1000)
sampled_data = sample_result['dataset_sampled']

# Dataset splitting
split_result = dataset.split('stratified', test_size=0.2)
train_set = split_result['train_set']
test_set = split_result['test_set']

# Access properties
print(f"Samples: {dataset.num_samples}")
print(f"Features: {dataset.num_features}")
print(f"Classes: {dataset.num_classes}")

📚 Citation

If you use TabCamel in your research, please cite:

@misc{tabcamel,
  title = {TabCamel: A DataFrame-focused solution for tabular datasets in machine learning workflows},
  author = {Xiangjian Jiang},
  year = {2025},
  howpublished = {\url{https://github.com/SilenceX12138/TabCamel}},
}

Metadata

Release files for tabcamel 2026.10.8

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

Source distribution (sdist)

Source distribution for tabcamel 2026.10.8
File Size Uploaded
tabcamel-2026.10.8.tar.gz 2.0 MB Details

Built distribution (wheel)

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

Total release size: 2.0 MB

Release files / tabcamel-2026.10.8.tar.gz

Download URL tabcamel-2026.10.8.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
13ddf06d7953d893796c80760fdaa962e4bf207013339c73e0124c3b14ba64dc
BLAKE2b-256 checksum
How to use checksums
d12e665de3bcaa1b8ceeb4056758348d13204e3693216d5ac1068f2af713f415
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 8, 2026.

Transparency log

Release files / tabcamel-2026.10.8-py3-none-any.whl

Download URL tabcamel-2026.10.8-py3-none-any.whl
Size 31.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
19a1c5c44df6cd8d29e86d4adfedfe333382094ea1c547d98777cb22c14e014d
BLAKE2b-256 checksum
How to use checksums
15338a97776e57e89afe7bc879d9a0ee197404fd34eab54cefa4e1abeb6625b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 8, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2026.10.8 This release

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