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.16.tar.gz (40.0 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.16-py3-none-any.whl (35.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bizlens-2.2.16.tar.gz
  • Upload date:
  • Size: 40.0 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.16.tar.gz
Algorithm Hash digest
SHA256 d87a00b311bddd17a18d7adf713512693ba6aa634b7ae9966cdb1ea2aa49495a
MD5 3ddc8fc64c90d0ec00acc620a31489aa
BLAKE2b-256 93aa7ab79466c02ba18241d145aa0b0dab4bf232ab5699ed297e52d6ed988ef4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bizlens-2.2.16-py3-none-any.whl
  • Upload date:
  • Size: 35.5 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.16-py3-none-any.whl
Algorithm Hash digest
SHA256 e48229ee3e82fe9f698d8ab3e7bed90baa80554972f7534e90a5e740064326fe
MD5 dd24e58ef17d242eea57dbc310df6324
BLAKE2b-256 439f8906079d18f69e1fc614ad352b0d96b48ff7ed5cd1ad80db9ffbb69bbc41

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