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 📊

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

Notebook Colab Link What You'll Learn
Quick Start Open in Colab Overview, frequency tables, outlier detection
Descriptive Analytics Open in Colab Frequency, percentile, contingency, data profile
Statistical Inference Open in Colab Confidence intervals, t-tests, ANOVA, correlation
Chi-Square & Association Open in Colab Chi-square, contingency tables, Cramér's V
Probability & Distributions Open in Colab Distribution fitting, simulation, sampling

Machine Learning

Notebook Colab Link What You'll Learn
Linear & Multiple Regression Open in Colab OLS regression, diagnostics, predictions
Logistic Regression Open in Colab Binary classification, ROC, confusion matrix
Decision Trees & Random Forests Open in Colab Tree models, feature importance, ensembles
PCA & Clustering Open in Colab Dimensionality reduction, K-Means, DBSCAN
Conjoint Analysis Open in Colab Preference modeling, attribute utilities
Q-Learning Open in Colab Reinforcement learning basics, Q-table

Process Mining

Notebook Colab Link What You'll Learn
Process Mining Open in Colab Case metrics, bottlenecks, variants, resources
Process Mining (Advanced) Open in Colab 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


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

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.15.tar.gz (39.6 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.15-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bizlens-2.2.15.tar.gz
  • Upload date:
  • Size: 39.6 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.15.tar.gz
Algorithm Hash digest
SHA256 87054f3a72b7cea6457c6bbe2e160a9ad0cbe325b5cffe0071d92237fc7ecf44
MD5 aaa71e2507381686564d1d25dc52f3b6
BLAKE2b-256 32e0859fc3095f84f950ee6af7fce80f72ece58d1b730ad2fa0a69692c12632c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bizlens-2.2.15-py3-none-any.whl
  • Upload date:
  • Size: 35.0 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.15-py3-none-any.whl
Algorithm Hash digest
SHA256 1115215e101c6b71a844f059d8e987cc9d6cec28c196bf8580e769d88cf00623
MD5 7fe1593ab3b4b6572249d18346008034
BLAKE2b-256 4ec7fe84cf9349042bbf339eda8979436eff43268694658bd4873044deeb7ca5

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