Skip to main content

๐Ÿš€ MasterClean

PyPI

Python

License

Enterprise AI-powered Data Cleaning, Validation, Anomaly Detection & Analytics Toolkit for Python.

MasterClean automates:

  • data cleaning
  • preprocessing
  • validation
  • profiling
  • anomaly detection
  • AI insights
  • visualization
  • reporting
  • analytics

using powerful CLI commands and Python APIs.

Designed for:

  • Data Analysts
  • Data Scientists
  • ML Engineers
  • Researchers
  • Students
  • Automation Workflows

โœจ Features

๐Ÿงน Advanced Data Cleaning

  • Missing value handling
  • Duplicate row removal
  • Empty string cleanup
  • Whitespace cleanup
  • Column standardization
  • Datetime conversion
  • Smart categorical filling
  • Automatic preprocessing pipeline

โšก Datatype Optimization

  • Integer optimization
  • Float optimization
  • Boolean conversion
  • Category optimization
  • Datetime detection
  • Memory usage reduction

๐Ÿ›ก Advanced Validation Engine

  • Negative value detection
  • Invalid boolean detection
  • Email validation
  • Phone validation
  • Duplicate percentage warnings
  • Missing value percentage analysis
  • Mixed datatype detection

๐Ÿšจ AI-Powered Anomaly Detection

  • Z-score anomaly detection
  • Salary anomaly detection
  • Sales spike detection
  • Demographic anomaly detection
  • Interactive anomaly visualization
  • Enterprise anomaly summaries

๐Ÿง  AI Insights Engine

  • Dataset risk scoring
  • Dataset quality grading
  • Cardinality detection
  • Identifier column detection
  • Correlation intelligence
  • ML readiness recommendations
  • Automated contextual suggestions

๐Ÿ“Š Advanced Profiling

  • Dataset health score
  • Missing value summaries
  • Datatype analytics
  • Memory usage analysis
  • Numeric statistics
  • Categorical summaries
  • Dataset overview metrics

๐Ÿ“ˆ Interactive Visualization Engine

  • Plotly dashboards
  • Histograms
  • Boxplots
  • Pie charts
  • Correlation heatmaps
  • Missing value charts
  • Line charts
  • Interactive anomaly scatter plots

๐Ÿ“„ Reporting System

  • Unified HTML analytics dashboard
  • Validation summaries
  • AI insight cards
  • Risk overview cards
  • Interactive visualizations
  • Automated report generation

๐Ÿ–ฅ Professional CLI Toolkit

MasterClean supports multiple enterprise commands.


๐Ÿš€ Full Automated Pipeline

masterclean clean data.csv

Runs:

  • cleaning
  • optimization
  • anomaly detection
  • validation
  • profiling
  • visualization
  • AI analysis
  • reporting
  • exporting

๐Ÿ›ก Validation Only

masterclean validate data.csv

๐Ÿ“Š Dataset Profiling

masterclean profile data.csv

๐Ÿ“ˆ Dashboard Generation

masterclean dashboard data.csv

๐Ÿšจ Anomaly Detection

masterclean anomaly data.csv

๐Ÿ”– Show Version

masterclean version

๐Ÿ“ฆ Installation

Install from PyPI

pip install masterclean

โฌ† Upgrade to Latest Version

pip install --upgrade masterclean

๐Ÿ Python Usage

from masterclean import *

# =====================================================
# READ DATASET
# =====================================================

df, file_extension = read_file(

    "data.csv"

)

# =====================================================
# CLEAN DATA
# =====================================================

df = clean_data(df)

# =====================================================
# OPTIMIZE DATATYPES
# =====================================================

df = optimize_dtypes(df)

# =====================================================
# VALIDATE DATA
# =====================================================

warnings = validate_data(df)

# =====================================================
# GENERATE PROFILE
# =====================================================

profile = generate_profile(df)

# =====================================================
# GENERATE VISUALIZATIONS
# =====================================================

charts = generate_charts(df)

# =====================================================
# AI INSIGHTS
# =====================================================

ai_insights = generate_ai_insights(df)

# =====================================================
# ANOMALY DETECTION
# =====================================================

anomalies = detect_anomalies(df)

# =====================================================
# ANOMALY VISUALIZATION
# =====================================================

anomaly_chart = generate_anomaly_chart(df)

if anomaly_chart:

    charts.append(anomaly_chart)

# =====================================================
# GENERATE ENTERPRISE DASHBOARD
# =====================================================

generate_report(

    df=df,

    warnings=warnings,

    profile=profile,

    charts=charts,

    ai_insights=ai_insights,

    anomalies=anomalies,

    output_file="report.html"

)

# =====================================================
# EXPORT CLEANED DATA
# =====================================================

export_data(

    df,

    "cleaned_data",

    file_extension

)

print(

    "๐Ÿš€ MasterClean pipeline completed successfully"

)

๐Ÿ“‚ Supported File Formats

Format Supported
CSV โœ…
XLSX โœ…
XLS โœ…

๐Ÿ”„ Same-Format Export System

MasterClean automatically preserves output format.

Input Output
CSV cleaned_data.csv
XLSX cleaned_data.xlsx
XLS cleaned_data.xlsx

๐Ÿ“Š Example Validation Output

VALIDATION WARNINGS
========================================

โš  Negative values found in 'salary' (3 rows)

โš  Invalid email values found in 'email' (5 rows)

โš  High duplicate rows detected (14.2%)

โš  Mixed datatypes detected in 'age'

๐Ÿšจ Example Anomaly Output

ANOMALY DETECTION
========================================

๐Ÿง  Anomaly Summary:
3 anomalies in 'salary',
2 anomalies in 'sales'.

๐Ÿšจ 'salary' contains 3 anomalies.
๐Ÿ’ก Possible payroll anomaly detected.

๐Ÿšจ 'sales' contains 2 anomalies.
๐Ÿ’ก Abnormal sales spike detected.

๐Ÿ— Enterprise Architecture

Read
   โ†“
Clean
   โ†“
Optimize
   โ†“
Detect Anomalies
   โ†“
Validate
   โ†“
Profile
   โ†“
Generate AI Insights
   โ†“
Visualize
   โ†“
Generate Dashboard
   โ†“
Export

๐Ÿ“ Project Structure

masterclean/
โ”‚
โ”œโ”€โ”€ preprocessing/
โ”œโ”€โ”€ validation/
โ”œโ”€โ”€ profiling/
โ”œโ”€โ”€ visualization/
โ”œโ”€โ”€ ml/
โ”œโ”€โ”€ reports/
โ”œโ”€โ”€ cli.py
โ”œโ”€โ”€ __init__.py
โ”‚
tests/
โ”‚
README.md
pyproject.toml
requirements.txt
LICENSE

๐Ÿงช Testing

Run tests using:

python -m pytest

๐Ÿ”„ CI/CD

MasterClean uses GitHub Actions for:

  • automated testing
  • dependency validation
  • continuous integration

๐Ÿ›ฃ Roadmap

Future improvements planned:

  • Streamlit dashboard
  • FastAPI integration
  • AutoML recommendations
  • Schema validation engine
  • Large dataset optimization
  • Cloud deployment support
  • Plugin architecture
  • Real-time analytics dashboards

๐Ÿค Contributing

Contributions are welcome.

You can:

  • report bugs
  • suggest features
  • improve documentation
  • submit pull requests

๐Ÿ“„ License

MIT License


๐Ÿ‘จโ€๐Ÿ’ป Author

Mohamed Faisal Maraicar N

GitHub:

https://github.com/MohamedFaisal-11/masterclean

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

masterclean-2.0.1.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

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

masterclean-2.0.1-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

Details for the file masterclean-2.0.1.tar.gz.

File metadata

  • Download URL: masterclean-2.0.1.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for masterclean-2.0.1.tar.gz
Algorithm Hash digest
SHA256 cc176f7508bc92901305f546d26a8bb0fb968954e7b53b56033515e74b63a640
MD5 b3cc4d96a6559355f5efe438659a7c7c
BLAKE2b-256 488c642c65bccf653b24e9a34033f643c3fea144fcf31e790c8694eb29a34bd2

See more details on using hashes here.

File details

Details for the file masterclean-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: masterclean-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 21.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for masterclean-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f8b69c95acc2b4cdcf9f6abee15b35ce27d433a0d353387e01e58e1bef3bf4f7
MD5 7d86534b9a32ba2dacae448f55e31670
BLAKE2b-256 e230eaad07791f762e4cb7c35db054621d4a76892953376477b1869ebdca3d73

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 Sentry Error logging StatusPage Status page