Skip to main content

BizLens: Complete analytics platform with 13 interactive Jupyter notebooks covering descriptive analytics, statistical inference, regression, machine learning, clustering, process mining, and time series analysis. Built-in Rich tables, dual Pandas/Polars support, and production-ready code examples.

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.3.1.tar.gz (28.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.3.1-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bizlens-2.3.1.tar.gz
  • Upload date:
  • Size: 28.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.3.1.tar.gz
Algorithm Hash digest
SHA256 b074881742ca4705f5357fb2b8a6a448f31916ca450b47fd026da735cd98ddaf
MD5 73b713b84878af3fe911dc8b41782d55
BLAKE2b-256 6c3eafc1adc72660b11dd14bca740fd31be469ec5e8b5e867ef54969f049626a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bizlens-2.3.1-py3-none-any.whl
  • Upload date:
  • Size: 24.7 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.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8699553118abf1f95f3e8feba83a6954dba119f30e9a3011f02fd2f8f6a81cb6
MD5 ca0f24c2e4b50890c4c9651d1c5554f6
BLAKE2b-256 b60d2ae3077257b2d76d2d5bd205ff3346852e89c9d3b93664793daea1989c8a

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