Skip to main content

BizLens 📊

Teaching-first Python analytics for business students and practitioners
Descriptive · Diagnostic · Classical ML · Process mining intro · Rich tables

PyPI version Python 3.9+ License: MIT

Current release: v2.3.6

BizLens is a lightweight analytics library designed for BBA/MBA classrooms, workshops, and reproducible demos. It focuses on clear tables, honest statistical reporting, and real teaching datasets — not an enterprise “do everything” suite.


Install

pip install -U bizlens

Requires Python 3.9+.

import bizlens as bl
print(bl.__version__)  # 2.3.5

tips = bl.load_dataset("tips")
bl.describe(tips, include_plots=False)
bl.tables.tables.frequency_table(tips["day"])

What is in the package (honest map)

Module Role Example
tables Frequency, contingency, summary stats bl.tables.tables.frequency_table(s)
quality Completeness, profile, uniqueness bl.quality.quality.data_profile(df)
diagnostic Outliers, normality, missingness bl.diagnostic.diagnostic.detect_outliers(s)
inference CI, t-tests, ANOVA, correlation bl.inference.inference.confidence_interval(s)
eda Distributions, heatmaps, full report bl.eda.eda.full_report(df)
preprocess Messy-data labs, cleaning bl.preprocess.preprocess.make_messy_data(df)
process_mining Cases, variants, bottlenecks, DFG, resources bl.process_mining.process_mining.case_metrics(log)
ml Classical ML reports (sklearn) bl.ml.ml.linear_regression_report(...)
viz Notebook chart theme helpers bl.viz.apply_theme()
datasets Seaborn + bundled sales case + event logs bl.load_dataset("sales_india_store_revenue")
deploy Streamlit scaffold bl.deploy.deploy.streamlit_app(df, launch=False)

Nested API style (by design): bl.<module>.<class>.<method>(...).

What is not claimed as package features

  • Full deep learning / LLM stack (use notebooks or sister apps)
  • Complete BPMN/Petri-net conformance suite (petri_net_from_log is a teaching stub)
  • Live Gradio export (not shipped)

Interactive companions (sister products)

Product URL Role
Regression Explorer https://regression-explorer.lovable.app/ Step-by-step OLS on business data
NLPPlayground https://nlpplayground.streamlit.app/ Python/R & NLP learning app
Source https://github.com/solutiongate-learn/bizlens Package + notebooks

Suggested path for regression week: Explorer (10 min) → Colab notebook (45 min) on the same sales case.


Curriculum notebooks (Colab)

Self-contained notebooks under notebooks/. Each installs BizLens in the first code cell. Real / familiar data first; synthetic labs only later.

Foundations & descriptive / diagnostic

Notebook Colab Primary data
Data Prep 101 Open in Colab tips (encoding first)
Quick Start Open in Colab tips
Statistical Inference Open in Colab tips
Chi-Square Open in Colab titanic
Probability & Distributions Open in Colab real then synthetic

Predictive (classical ML)

Notebook Colab Primary data
Linear & Multiple Regression Open in Colab sales_india_store_revenue + tips
Logistic Regression Open in Colab titanic
Trees & Random Forests Open in Colab titanic
PCA & Clustering Open in Colab penguins

Prescriptive / simulation (light)

Notebook Colab
Conjoint Analysis Open in Colab
Q-Learning Open in Colab

Process-mining deep dives use the synthetic generators (generate_hr_onboarding_event_log, etc.) — domain-realistic, not anonymous noise.


Data philosophy

  1. Lead with real or identifiable data (tips, titanic, bundled Indian sales case).
  2. Synthetic / random only later, labeled as a lab with known ground truth.
  3. Process logs from generators are teaching simulations with real activity names — documented as such.
# Bundled regression case (positive ₹ Lakh revenue)
sales = bl.load_dataset("sales_india_store_revenue")
bl.ml.ml.linear_regression_report(
    sales,
    features=["AdSpend_Lakh", "PriceIndex", "SalesStaff", "PromoDays"],
    target="Revenue_Lakh",
)

Development & tests

git clone https://github.com/solutiongate-learn/bizlens.git
cd bizlens
python -m pip install -e ".[dev]"  # or: pip install -e .
python -m unittest tests.test_regressions -v

Release process: see DEPLOY.md. Roadmap: ROADMAP.md. Changelog: CHANGELOG.md.


Citation / teaching use

Singh, S. (2026). BizLens (Version 2.3.6) [Computer software].
https://github.com/solutiongate-learn/bizlens

License

MIT — see LICENSE.

Made for analysts, educators, and students · Solution Gate Learn

Metadata

Release files for bizlens 2.3.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bizlens 2.3.6
File Size Uploaded Provenance Actions
bizlens-2.3.6.tar.gz 53.3 kB Without provenance Details for bizlens-2.3.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bizlens 2.3.6
File Interpreter ABI Platform Actions
bizlens-2.3.6-py3-none-any.whl Python 3 none any Details for bizlens-2.3.6-py3-none-any.whl

Total release size: 91.8 kB

Release files / bizlens-2.3.6.tar.gz

Download URL bizlens-2.3.6.tar.gz
Size 53.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e6688667b4ce85e7fd6e743739076f18ec84f5e174c7b1a2b671a77ac89bf82e
BLAKE2b-256 checksum
How to use checksums
a09218cbe725ec006534d88cec44963226d84e71085d1b59c5cc91679c656eb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.11

Release files / bizlens-2.3.6-py3-none-any.whl

Download URL bizlens-2.3.6-py3-none-any.whl
Size 38.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
812e5d17f0f28035e02991da0b5d1ee802ba987598d06926ab0bb7ed9a7c42c5
BLAKE2b-256 checksum
How to use checksums
a3d502704b0b29542799be745d4cba2918ba838245d78bfa0af640cae3a83cdc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.11

Security for bizlens 2.3.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page