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


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.2.tar.gz (13.7 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.2-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: featurelab-0.1.2.tar.gz
  • Upload date:
  • Size: 13.7 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.2.tar.gz
Algorithm Hash digest
SHA256 add2abe93b1229917508d90635d77da807884460cbcc7a1743d426830239d677
MD5 d8f3397fd3d4cf7f7fac327e7c7080ba
BLAKE2b-256 3405e0235beba0a7af94f65e4f90beef63514777fd00b0698179d7c37e8e3ee5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: featurelab-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 17.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 292051b097b23288da68dd7e3dcddf68d682b95f715c55675028fea6a273a24e
MD5 e0c8515be611526f75de702f2e691fab
BLAKE2b-256 fac1b1f581b69f33e12032f5350ae7fb780de0258dd7816ae85eb4447fa7b4ed

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