Skip to main content

Educational descriptive analytics + statistical inference + process mining. Rich tables, diagnostic checks, hypothesis testing, and business process analysis for teaching and analysis.

Project description

BizLens 📊

Fast descriptive analytics for business + real process mining event logs

BizLens is a Python library for business analysts, data scientists, educators, and students. It provides professional statistical analysis, beautiful visualizations, and special support for business process mining.


🚀 Quick Start - Try in Google Colab Now!

No installation needed. Click any link below to start learning immediately:

📚 Interactive Tutorials (5-20 minutes each)

Tutorial Duration What You'll Learn
Quick Start 5 min Overview, data quality, diagnostics
Descriptive Analytics 15 min Tables, distributions, quality checks
Process Mining 15 min Event logs, workflows, bottlenecks
Statistical Inference 20 min Hypothesis testing, ANOVA, correlation

All notebooks auto-install BizLens - just run the first cell!


💾 Installation

Standard Installation

pip install bizlens

With Specific Version

pip install bizlens==2.2.12

For Development

git clone https://github.com/solutiongate-learn/bizlens.git
cd bizlens
pip install -e .

📦 What's Included

6 Core Modules

Module Purpose Key Functions
tables Statistical tables & distributions frequency_table, percentile_table, contingency_table, summary_statistics
diagnostic Data quality & outlier detection detect_outliers, normality_test, correlation_analysis, missing_value_analysis
inference Hypothesis testing & confidence intervals confidence_interval, two_sample_ttest, anova_test, correlation_test
process_mining Business process analysis case_metrics, variant_discovery, bottleneck_analysis, rework_detection
quality Data quality scoring data_profile, completeness_report, consistency_check
core Main describe() function Smart data exploration with Pandas/Polars

🎯 Use Cases

  • Business Analytics: Analyze customer data, sales metrics, process efficiency
  • Education: Teach descriptive statistics, hypothesis testing, process analysis
  • Data Science: Quick exploratory analysis with publication-ready tables
  • Quality Assurance: Detect outliers, assess data completeness, find anomalies
  • Process Improvement: Identify bottlenecks, discover process variants, measure efficiency

💡 Example Usage

Quick Data Exploration

import bizlens as bz
import pandas as pd

# Load your data
df = pd.read_csv('data.csv')

# Smart analysis with one function
bz.describe(df)

Create Statistical Tables

# Frequency distribution
freq = bz.tables.frequency_table(df, 'category')

# Summary statistics
stats = bz.tables.summary_statistics(df[['sales', 'profit']])

# Percentile analysis
percentiles = bz.tables.percentile_table(df[['age']])

Analyze Business Processes

# Detect event logs automatically
metrics = bz.process_mining.case_metrics(event_log)
bottlenecks = bz.process_mining.bottleneck_analysis(event_log)
variants = bz.process_mining.variant_discovery(event_log)

Run Statistical Tests

# Confidence intervals
ci = bz.inference.confidence_interval(data, confidence=0.95)

# Hypothesis testing
result = bz.inference.two_sample_ttest(group1, group2)

# ANOVA for multiple groups
anova = bz.inference.anova_test(df, group_col='category', value_col='metric')

Assess Data Quality

# Overall quality score (0-100)
quality = bz.quality.data_profile(df)

# Detailed completeness report
completeness = bz.quality.completeness_report(df)

# Outlier detection
outliers = bz.diagnostic.detect_outliers(df[['column']], method='iqr')

📖 Documentation

  • API Reference: Each function has detailed docstrings
  • Examples: See /examples/ directory for Python scripts
  • Notebooks: Run interactive Colab tutorials (links above)
  • Source: Full source code in /src/bizlens/

✨ Key Features

Pandas & Polars compatible - Works with both DataFrames ✅ Auto-install dependencies - All notebooks handle setup automatically ✅ Publication-ready output - Professional tables and visualizations ✅ Educational focus - Clear explanations in every function ✅ Sample datasets included - Learn without external data ✅ Process mining support - Analyze event logs automatically ✅ Statistical rigor - Proper hypothesis testing with effect sizes ✅ Data quality tools - Comprehensive profiling and diagnostics


🔄 Supported Environments

Environment Status Notes
Google Colab ✅ Full Recommended for quick learning
Jupyter Notebook ✅ Full Local installation required
JupyterLab ✅ Full Modern notebook interface
VS Code ✅ Full With Jupyter extension
Terminal/CLI ✅ Full Standard Python environments

📊 Version Info

  • Current Version: 2.2.12
  • Python: 3.8+
  • Status: Production ready
  • License: MIT

🤝 Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Add tests for new functionality
  4. Submit a pull request

📞 Support


📋 Getting Started Checklist

  • Install: pip install bizlens
  • Try Colab: Click any tutorial link above
  • Explore examples: Check /examples/ directory
  • Read docstrings: help(bz.tables.frequency_table)
  • Build something: Apply to your own data!

Made with ❤️ for business analysts, data scientists, and students

GitHubPyPIMIT License

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

bizlens-2.2.12.tar.gz (37.7 kB view details)

Uploaded Source

Built Distribution

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

bizlens-2.2.12-py3-none-any.whl (34.6 kB view details)

Uploaded Python 3

File details

Details for the file bizlens-2.2.12.tar.gz.

File metadata

  • Download URL: bizlens-2.2.12.tar.gz
  • Upload date:
  • Size: 37.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for bizlens-2.2.12.tar.gz
Algorithm Hash digest
SHA256 e350d1e8b48fb98632fa59c7aa7933933d1fc5bcef52ccbed0fa42580f8384d1
MD5 8cf1bb32fcd0df309f06b8771dbb00b5
BLAKE2b-256 cdaffb2638252a5b543fc69498adf6949e580f29292a24ebe1d13aebc633ed73

See more details on using hashes here.

File details

Details for the file bizlens-2.2.12-py3-none-any.whl.

File metadata

  • Download URL: bizlens-2.2.12-py3-none-any.whl
  • Upload date:
  • Size: 34.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for bizlens-2.2.12-py3-none-any.whl
Algorithm Hash digest
SHA256 7fad79397abcf9e4e968495a92d6da172f57ffa887b4082309789611791de028
MD5 a42d2ba4d6e4d14123f4d94298c18d0b
BLAKE2b-256 94456409d87407a9f9cd3f7ce9adc22e0f1dbcedcfd9b348da06a8e30f7eb3bd

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