Comprehensive feature engineering package with statistical guidance
Project description
FeatureLab
FeatureLab is a comprehensive Python package for feature engineering, offering statistical guidance and a suite of tools to streamline data preprocessing for machine learning projects.
Features
- Automatic Feature Type Detection: Identify numeric, categorical, datetime, and text columns in your DataFrame.
- Missing Value Visualization: Visualize missing data patterns and distributions.
- Outlier Visualization: Easily spot and analyze outliers.
- Feature Importance Plotting: Visualize feature importance scores for model interpretability.
- Correlation Matrix Heatmaps: Explore feature correlations visually.
- PCA & RFE Visualization: Understand dimensionality reduction and feature selection results.
- Memory Optimization: Reduce DataFrame memory usage efficiently.
- Datetime Feature Expansion: Extract year, month, day, and more from datetime columns.
- Categorical Distribution Plots: Visualize the distribution of categorical features.
- Duplicate Row Visualization: Detect and visualize duplicate rows.
- Easy Integration: Designed to work seamlessly with pandas DataFrames.
Installation
Clone the repository and install with pip:
git clone https://github.com/yourusername/featurelab.git
cd featurelab
pip install .
Or install directly if distributed on PyPI:
pip install featurelab
Requirements
- Python >= 3.7
- numpy >= 1.20.0
- pandas >= 1.2.0
- scipy >= 1.6.0
- scikit-learn >= 0.24.0
- matplotlib >= 3.3.0
- seaborn >= 0.11.0
- missingno >= 0.4.2
Usage
Python API
import pandas as pd
from featurelab.utils import FeatureUtils
from featurelab.visualizer import Visualizer
df = pd.read_csv("your_data.csv")
# Detect column types
col_types = FeatureUtils.detect_column_types(df)
print(col_types)
# Optimize memory usage
df_optimized = FeatureUtils.memory_optimize(df)
# Visualize missing values
viz = Visualizer()
viz.plot_null_matrix(df)
# Plot feature importance (example)
# importance_scores = ... # pd.Series with feature importances
# viz.plot_feature_importance(importance_scores)
CLI (if implemented)
featurelab --help
Project Structure
Author
Shekhar Suman
s.sumanpathak513@gmail.com
License
MIT License
Keywords
feature-engineering, data-preprocessing, machine-learning, pandas, visualization
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file featurelab-0.1.3.tar.gz.
File metadata
- Download URL: featurelab-0.1.3.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36a795a91aa34e472617e311f21e6d8828fc5adfce87c6f2723879f0678ef9f7
|
|
| MD5 |
2f90790f7eebe9b3144caacbe47da934
|
|
| BLAKE2b-256 |
fcf2399475e2a30e5a1592489fe32a346665d151ad2201d4961eb3a43bea8720
|
File details
Details for the file featurelab-0.1.3-py3-none-any.whl.
File metadata
- Download URL: featurelab-0.1.3-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d055976e1898a99c355c026b6b7f65f54cb2a995a77aac4404c25eb28af05dc8
|
|
| MD5 |
8ee082c97b7955615f3811e7b05f88f6
|
|
| BLAKE2b-256 |
f94485bd8ad56aa54ec3959220c4245c5ad7d79f500eff67e8b27f5e2b0fdd57
|