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.0.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.0-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: featurelab-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 3ed95030c041ee346108910fee1438cdcd3bd92f2cc479b7f88ba73c38d76dd6
MD5 6663e4384a2a741a2bf3b519a6d201cb
BLAKE2b-256 9284172f85b87b932ae59605199e773a6b103def9e592faa4ae4492484f583d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: featurelab-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b491761b172324bff839d66f5ebb65780d4eb1c8f2084211a3c4e3dd1401fbf
MD5 a4896458fb3e7d3b82ba6dd7825768f5
BLAKE2b-256 d0fd2bf69cf36a1afe6f8a199fe1ad9195c68b36289b03e25e2abd600d3b058d

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