Skip to main content

🧠 smart-preprocess-asif

A lightweight, one-line data preprocessing toolkit for machine learning workflows.

PyPI version Python versions License Downloads


🚀 Install

pip install smart-preprocess-asif

💡 Quick Start

import pandas as pd
from smart_preprocess import SmartCleaner

df = pd.DataFrame({
    "age": [20, None, 1000],
    "city": ["NY", "LA", None]
})

cleaner = SmartCleaner(outlier_clip=True)
X = cleaner.fit_transform(df)

print("✅ Cleaned DataFrame:")
print(X.head())
print("\nReport:")
print(cleaner.report_)

Output:

✅ Cleaned DataFrame:
   age__scaled  city_LA  city_NY  city_None
0    -1.224745      0.0      1.0        0.0
1     0.000000      1.0      0.0        0.0
2     1.224745      0.0      0.0        1.0

Report:
{'numeric_cols': ['age'], 'categorical_cols': ['city'], ...}

🔍 Features

✅ Automatic missing value imputation
✅ Outlier clipping (IQR method)
✅ Feature scaling using StandardScaler
✅ One-hot encoding for categorical variables
✅ Compact report dictionary summarizing transformations

🧩 Why use smart-preprocess-asif?

In ML projects, preprocessing pipelines often require 10–15 lines of repetitive boilerplate.
smart-preprocess-asif condenses those steps into one reusable, customizable class —
built with pandas + scikit-learn for performance and reliability.

🧪 Example Use Case

Integrate it into a scikit-learn pipeline:

from sklearn.pipeline import Pipeline
from smart_preprocess import SmartCleaner
from sklearn.linear_model import LogisticRegression

pipe = Pipeline([
    ("prep", SmartCleaner(outlier_clip=True)),
    ("model", LogisticRegression())
])

pipe.fit(X_train, y_train)

🛠 Requirements

Python ≥ 3.9

pandas ≥ 2.0

scikit-learn ≥ 1.3

numpy ≥ 1.24

1.24

🤝 Contributing

Pull requests are welcome!

Issues

📜 License

Licensed under the MIT License © 2025 Asif Pinjari

🌟 Support

If you find this project useful, please share it:

🔗 PyPI:
https://pypi.org/project/smart-preprocess-asif/

Metadata

Release files for smart-preprocess-asif 0.1.2

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

Source distribution (sdist)

Source distribution for smart-preprocess-asif 0.1.2
File Size Uploaded Provenance Actions
smart_preprocess_asif-0.1.2.tar.gz 4.1 kB Without provenance Details for smart_preprocess_asif-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for smart-preprocess-asif 0.1.2
File Interpreter ABI Platform Actions
smart_preprocess_asif-0.1.2-py3-none-any.whl Python 3 none any Details for smart_preprocess_asif-0.1.2-py3-none-any.whl

Total release size: 8.3 kB

Release files / smart_preprocess_asif-0.1.2.tar.gz

Download URL smart_preprocess_asif-0.1.2.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
73333333eed3670493b2518f0f994e1a9eb010d74f87ed296e855fc6a2c5d1b3
BLAKE2b-256 checksum
How to use checksums
4386e96d7ac79e244030f4c046c9fe87d141c98085964d58acb380ddfa16cfb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / smart_preprocess_asif-0.1.2-py3-none-any.whl

Download URL smart_preprocess_asif-0.1.2-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2cb5e6354d0644f618e2e84e0ee0613ae441f04b4123213234bb358555fcdc41
BLAKE2b-256 checksum
How to use checksums
9b7a6b7c33cf131d5107fe9ed397e2f16efcf4629467eb0783724d4d173e2457
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Security for smart-preprocess-asif 0.1.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

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