๐ MasterClean
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 *
df, file_extension = read_file("data.csv")
df = clean_data(df)
df = optimize_dtypes(df)
warnings = validate_data(df)
profile = generate_profile(df)
charts = generate_charts(df)
ai_insights = generate_ai_insights(df)
anomalies = detect_anomalies(df)
generate_report(
df=df,
warnings=warnings,
profile=profile,
charts=charts,
ai_insights=ai_insights,
anomalies=anomalies
)
export_data(
df,
"cleaned_data",
file_extension
)
๐ 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
๐ธ Dashboard Screenshots
AI Dashboard
Add screenshot here:
screenshots/dashboard.png
Anomaly Detection
Add screenshot here:
screenshots/anomalies.png
Interactive Charts
Add screenshot here:
screenshots/charts.png
๐ 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:
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file masterclean-2.0.0.tar.gz.
File metadata
- Download URL: masterclean-2.0.0.tar.gz
- Upload date:
- Size: 21.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4241aca348be3d2e3f70db28607fc7e6e0990438c81d0ca19508715ef522fd1
|
|
| MD5 |
80ecb7529f4e324f683678809da6022e
|
|
| BLAKE2b-256 |
0c381cef2a625d21e4d80db465b6832c774d41ab1f5c2edfc538f60a0e055f3c
|
File details
Details for the file masterclean-2.0.0-py3-none-any.whl.
File metadata
- Download URL: masterclean-2.0.0-py3-none-any.whl
- Upload date:
- Size: 20.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbcb2b132e0028e2372147b033317a2de7dcf1d1d031de0a1041b47994d07fb0
|
|
| MD5 |
48fdece08a77120588d7386d4c3257a5
|
|
| BLAKE2b-256 |
a0d32d9d40ff55f4cd3930fdacb9a4fe758c7b900bbb185dab06940c4f8798aa
|