Skip to main content

Modular and extensible data preprocessing library

Project description

🪿 Goose

Modular and Extensible Data Preprocessing Library for Machine Learning

Goose is a plug-and-play, mixin-based Python library that streamlines the preprocessing of tabular datasets for machine learning tasks. Whether you’re cleaning messy data, encoding categories, transforming skewed distributions, or scaling features — this package has you covered.


🚀 Features

  • 🧼 Handle missing data
  • 🔢 Convert object columns to numeric
  • 🔍 Identify feature types (categorical, ordinal, nominal, etc.)
  • ⚙️ Encode nominal and ordinal features
  • 🔄 Transform skewed and heavy-tailed features
  • 📏 Scale features with standard or power transformations
  • 🧪 Train-test split with optional oversampling
  • 📊 Transformation logs for transparency and reproducibility
  • 🔌 Built using Mixins for modular extension

📂 Installation

You can install the package directly from Test PyPI:

pip install --index-url https://test.pypi.org/simple/ Goose

Or, after building your wheel file (.whl) from the source:

pip install dist/Goose-0.1.3-py3-none-any.whl

Or install directly in editable mode (for development):

pip install -e .

🧪 Usage

import Goose as Goose

# Instantiate with a dataset
obj = Goose(
    dataframe=df,
    target_variable='target',
    ordinal_features=['education_level'],
    ordinal_categories=[['Low', 'Medium', 'High']],
    use_one_hot_encoding=True
)

# Apply full preprocessing pipeline
X_train, X_test, y_train, y_test = obj.pre_process()

# Access logs
print(obj.transformation_log_df)

🗂 Default Sample Dataset

If no DataFrame is provided, the processor loads a built-in heart.csv dataset:

obj = Goose()  # Uses sample heart dataset

📁 Project Structure

src/
│
├── Goose/
│   ├── Goose.py                  # Main class
│   ├── mixins/                 # Modular preprocessing logic
│   ├── data/heart.csv          # Default dataset
│   ├── datasets.py             # Heart dataset loader
│   └── __init__.py

⚙️ Requirements

  • Python 3.9–3.11
  • pandas
  • scikit-learn
  • imbalanced-learn
  • scipy
  • ipython
  • openpyxl

📜 License

MIT © Abhijeet
You're free to use, modify, and distribute this project with proper attribution.


✨ Contributions Welcome

Want to add new mixins or support more file types? Fork it, branch it, push it, and let’s build together!

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

geesetools-0.1.7.tar.gz (27.3 kB view details)

Uploaded Source

Built Distribution

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

geesetools-0.1.7-py3-none-any.whl (33.0 kB view details)

Uploaded Python 3

File details

Details for the file geesetools-0.1.7.tar.gz.

File metadata

  • Download URL: geesetools-0.1.7.tar.gz
  • Upload date:
  • Size: 27.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for geesetools-0.1.7.tar.gz
Algorithm Hash digest
SHA256 c669bc3e458a2d43d37e00a24c33c2552ada91360ffac847b3cc99e9d40c4af7
MD5 8a7298df721b378e56faa0c003cf7ce3
BLAKE2b-256 b62c2909887362dfd31dee0255c30ce2c59c0f65cec45851a12b800a553a6347

See more details on using hashes here.

File details

Details for the file geesetools-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: geesetools-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 33.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for geesetools-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 414a73c396ae78f58e0f1ffd2a40343fa2f8f44719e17aa97e3d9f04566284bc
MD5 4ebaa51caf99718c7401195a4b37df86
BLAKE2b-256 951edf25a0f9fcd9130dde6619154bb921fb86ba1250f94dbf98587dc9e710f9

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