BizLens 📊
Teaching-first Python analytics for business students and practitioners
Descriptive · Diagnostic · Classical ML · Process mining intro · Rich tables
Current release: v2.3.5
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_logis 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 |
|---|---|---|
| Quick Start | tips |
|
| Statistical Inference | tips |
|
| Chi-Square | titanic |
|
| Probability & Distributions | real then synthetic |
Predictive (classical ML)
| Notebook | Colab | Primary data |
|---|---|---|
| Linear & Multiple Regression | sales_india_store_revenue + tips |
|
| Logistic Regression | titanic |
|
| Trees & Random Forests | titanic |
|
| PCA & Clustering | penguins |
Prescriptive / simulation (light)
| Notebook | Colab |
|---|---|
| Conjoint Analysis | |
| Q-Learning |
Process-mining deep dives use the synthetic generators (generate_hr_onboarding_event_log, etc.) — domain-realistic, not anonymous noise.
Data philosophy
- Lead with real or identifiable data (
tips,titanic, bundled Indian sales case). - Synthetic / random only later, labeled as a lab with known ground truth.
- 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.5) [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.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bizlens-2.3.5.tar.gz | 48.5 kB | Without provenance | Details for bizlens-2.3.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bizlens-2.3.5-py3-none-any.whl | Python 3 | none | any | Details for bizlens-2.3.5-py3-none-any.whl |
Total release size: 83.5 kB
Release files / bizlens-2.3.5.tar.gz
| Download URL | bizlens-2.3.5.tar.gz |
|---|---|
| Size | 48.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
447e36e7fbe1c5ae14f46287d3143bf47d126157518ab645f8303457e1cc18bc
|
|
BLAKE2b-256 checksum How to use checksums |
1ddf65f700cb762c14779423b7eb03920fd0e905d10494227e581ef1100af9b9
|
| 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.5-py3-none-any.whl
| Download URL | bizlens-2.3.5-py3-none-any.whl |
|---|---|
| Size | 35.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
52ed663f33684cfa8d60fe955bf09c161fc5862774c623d970ea50d7ffc9fafb
|
|
BLAKE2b-256 checksum How to use checksums |
75ee3cc87ef42a041b29b71a686a2512a2c35f84514fd96c40d49482770f3439
|
| 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.5
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.