Skip to main content

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

feature-package/
│
├── featurelab/
│   ├── __init__.py
│   ├── utils.py         # Feature engineering utilities (class-based)
│   ├── visualizer.py    # Visualization tools for feature engineering
│   └── __main__.py      # (Optional) CLI entry point
│
├── setup.py             # Package setup script
├── README.md            # Project documentation
└── (other files)

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

featurelab-0.1.1.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

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

featurelab-0.1.1-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file featurelab-0.1.1.tar.gz.

File metadata

  • Download URL: featurelab-0.1.1.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for featurelab-0.1.1.tar.gz
Algorithm Hash digest
SHA256 576d7d83e5512b5733cd53175170726f91353cdb1f19ffbac3e5059b18b8fede
MD5 5961a412c1097ec05e5774695a61ccb2
BLAKE2b-256 a49a80ce36a00ac2a950184414bd0e8e13a1b615c2f40ae81a583f5196baa552

See more details on using hashes here.

File details

Details for the file featurelab-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: featurelab-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for featurelab-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 85bd8ad6722ed53de6e565b7304cdf5c66b9f65d7d67b7311d795441ab88afde
MD5 ab2a8f31a942bd1a1a10c43d00a40b30
BLAKE2b-256 0b940565a719f35569f28374bf691066a12c0db94421dd853823af17d8b2aa79

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