Educational descriptive analytics + statistical inference + process mining. Rich tables, diagnostic checks, hypothesis testing, and business process analysis for teaching and analysis.
Project description
BizLens 📊
Business analytics, statistical inference, and process mining — all in one package
BizLens is a Python library for business analysts, data scientists, educators, and students. It delivers professional statistical analysis, beautiful Rich tables, and built-in support for business process mining — all with a single pip install.
🚀 Open in Google Colab — No Installation Needed
Click any link to launch a notebook instantly in your browser:
Core Analytics
Machine Learning
Process Mining
| Notebook | Colab Link | What You'll Learn |
|---|---|---|
| Process Mining | Case metrics, bottlenecks, variants, resources | |
| Process Mining (Advanced) | BizLens + optional pm4py integration |
All notebooks auto-install BizLens on first run — just click the Colab badge and run the first cell.
💾 Installation
pip install bizlens
# With process mining extras (pm4py)
pip install bizlens[process-mining]
# Latest from source
git clone https://github.com/solutiongate-learn/bizlens.git
cd bizlens && pip install -e .
📦 Modules at a Glance
| Module | Key Functions |
|---|---|
bl.tables |
frequency_table, percentile_table, contingency_table, summary_statistics |
bl.diagnostic |
detect_outliers, normality_test, correlation_analysis, missing_value_analysis |
bl.inference |
confidence_interval, two_sample_ttest, anova_test, paired_ttest, correlation_test |
bl.process_mining |
case_metrics, variant_discovery, bottleneck_analysis, resource_analysis |
bl.quality |
data_profile, completeness_report, consistency_check |
bl.describe() |
Smart all-in-one data exploration |
💡 Quick Examples
import bizlens as bl
import pandas as pd
# Load a built-in teaching dataset (returns pandas DataFrame)
df = bl.load_dataset('titanic') # or 'tips', 'iris', 'penguins', 'diamonds', 'mpg'
# Frequency distribution
bl.tables.frequency_table(df['sex'])
# Summary statistics
bl.tables.summary_statistics(df[['age', 'fare']])
# Contingency table with chi-square test
table, stats = bl.tables.contingency_table(df, 'sex', 'survived')
print(f"Chi² = {stats['chi2']:.3f}, p = {stats['p_value']:.4f}, Cramér's V = {stats['cramers_v']:.3f}")
# Data quality profile
bl.quality.data_profile(df)
# Confidence interval
import numpy as np
bl.inference.confidence_interval(df['age'].dropna(), confidence=0.95)
# Two-sample t-test
bl.inference.two_sample_ttest(df[df['sex']=='male']['fare'], df[df['sex']=='female']['fare'])
Process Mining
# Load a built-in event log (returns pandas DataFrame)
event_log = bl.generate_hr_onboarding_event_log()
bl.process_mining.case_metrics(event_log)
bl.process_mining.bottleneck_analysis(event_log)
bl.process_mining.variant_discovery(event_log)
bl.process_mining.resource_analysis(event_log, resource_col='resource')
Polars Users
# BizLens also accepts polars DataFrames
import polars as pl
df_pl = pl.from_pandas(bl.load_dataset('titanic'))
bl.tables.frequency_table(df_pl['sex']) # works transparently
bl.quality.data_profile(df_pl) # works transparently
🔄 Supported Environments
| Environment | Status |
|---|---|
| Google Colab | ✅ Recommended |
| Jupyter Notebook / JupyterLab | ✅ Full |
| VS Code (Jupyter extension) | ✅ Full |
| Terminal / scripts | ✅ Full |
📊 Version
- Current: 2.2.13
- Python: 3.9+
- License: MIT
📞 Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- PyPI: pypi.org/project/bizlens
Made with ❤️ for business analysts, data scientists, and students
Project details
Release history Release notifications | RSS feed
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 bizlens-2.2.14.tar.gz.
File metadata
- Download URL: bizlens-2.2.14.tar.gz
- Upload date:
- Size: 38.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2527c70685364256ff722a07c5fd72846fea680dc03d084cdcd834b54e17ecdd
|
|
| MD5 |
82c4d912d377eeed25de8e65a2ca5802
|
|
| BLAKE2b-256 |
c6735e315ec6666e4ddbf7ea03d68c63e430afa87835f3cb13711c602aaa45e3
|
File details
Details for the file bizlens-2.2.14-py3-none-any.whl.
File metadata
- Download URL: bizlens-2.2.14-py3-none-any.whl
- Upload date:
- Size: 34.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45310bf3181d803e1881e9bf55982869f81d7fb654e94f3e8720a492d16f5ae5
|
|
| MD5 |
d6144df634b943ca55ca01e4d0a0740e
|
|
| BLAKE2b-256 |
d961d9bf7149c915c51a33e3e7c0d705395104aa3a8e08a658e78c7dbe26a3cd
|