Skip to main content

Datasense: An Explainable EDA library for automated exploratory data analysis, outlier detection, feature importance, and visualization.

Project description

datasense 📊

Python Tests

A Python library for automated exploratory data analysis (EDA), data cleaning, and visualization. Built for beginners and analysts to quickly understand and preprocess datasets.


✨ Features

  • Dataset Summary: Overview of shape, dtypes, missing values, duplicates.
  • Missing Value Handling: Detect and impute missing values (mean, median, mode, constant, drop).
  • Outlier Detection: Identify outliers using Z-score or IQR methods.
  • Feature Importance: Calculate and visualize feature importance for regression/classification.
  • Time-Series Analysis: Decomposition, rolling statistics, and trend detection.
  • Visualizations: Histograms, boxplots, count plots, correlation matrices, scatter plots, pair plots.
  • Automated Recommendations: Get actionable insights for data preprocessing.

🚀 Why Datasense?

  • ⚡ One-line automated EDA for quick dataset understanding.
  • 🧹 Built-in cleaning and preprocessing to save time.
  • 📊 Visual + tabular insights, ready for analysis or ML pipelines.
  • 🔧 Beginner-friendly but powerful enough for production workflows.

Installation

git clone https://github.com/Akash-Sare03/datasense.git
cd datasense
pip install -r requirements.txt

Or install from PyPI: 
pip install datasense

Quick Start

import pandas as pd
from datasense import analyze

df = pd.read_csv("your_data.csv")

# Run a full EDA
analyze(df, target_col="price")

Usage Examples

Basic EDA Report

from datasense import analyze

analyze(df, target_col="price", outlier_method="zscore")

Handle Missing Values

from datasense import handle_missing_values

df_clean, report = handle_missing_values(df, method="mean")

Feature Importance

from datasense import feature_importance_calculate

fi_df, markdown_report, task_type = feature_importance_calculate(df, target_col="target", top_n=10)
print(markdown_report)

Time-Series Analysis

from datasense import analyze_timeseries

analyze_timeseries(df, date_col="date", target_col="sales", freq="D")

Example Notebooks

See practical examples and full workflows in the included Jupyter notebooks:


API Reference

Main Functions

  • analyze(): Generate a full EDA report.
  • summarize_dataset(): Dataset overview.
  • handle_missing_values(): Impute or remove missing values.
  • detect_outliers(): Find outliers using Z-score or IQR.
  • feature_importance_calculate(): Compute feature importance.
  • analyze_timeseries(): Decompose and plot time-series data.
  • visualize(): Auto-generate plots for numeric/categorical features.

Contributing

  1. Fork the project.
  2. Create a feature branch: git checkout -b feature-name
  3. Commit changes: git commit -m 'Add feature'
  4. Push to the branch: git push origin feature-name
  5. Open a pull request.

License

This project is licensed under the MIT License. See LICENSE for details.


Deployment

This package is available on PyPI. Install it via:

pip install datasense

Or deploy locally:

python setup.py sdist bdist_wheel
twine upload dist/*

Support

If you have any questions or issues, please open an issue here.

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

datasense_eda-0.1.0.tar.gz (6.2 MB view details)

Uploaded Source

Built Distribution

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

datasense_eda-0.1.0-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: datasense_eda-0.1.0.tar.gz
  • Upload date:
  • Size: 6.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.1

File hashes

Hashes for datasense_eda-0.1.0.tar.gz
Algorithm Hash digest
SHA256 78cf00d46400a2eb4b349e736a606937163886e7017cbbddebec55d2f91ed53f
MD5 d1a47371dd45d1bf221b784d0a9a382b
BLAKE2b-256 ea01fe7318d831d4382fde9231c835e37e6603b67ddbfa59b8b6a24774ebd3ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: datasense_eda-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.1

File hashes

Hashes for datasense_eda-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 226d5b98e189775ccde4d12d39b3eff4eacef79d379c74923ca52f94c006e3f2
MD5 d23f094b669b43d7c96bba2bc46ab78d
BLAKE2b-256 897e817e46d4ec15374fafcca8d973b118f33abb3cf8c7b66954567e84ecc7a7

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