Skip to main content

Quality Improvement and Statistical Process Control charts for Python

Project description

pyqicharts

2.0.0 stable production release

pyqicharts is a Python package for Quality Improvement and Statistical Process Control charting. It is designed for analysts who need practical run charts, control charts, validation examples, sample data, reporting exports and education material.

The package is an independent open-source project by Assegai Studios Ltd. It is influenced by widely used quality-improvement and SPC methods, but it is not an official publication or endorsed implementation of any public body, vendor or external software project.

Install

python -m pip install pyqicharts

For reporting exports:

python -m pip install pyqicharts[reporting]

For interactive notebook outputs:

python -m pip install pyqicharts[interactive]

For development and test work:

python -m pip install -e .[dev]
python -m pytest --cov=pyqicharts

Quick Start

from pyqicharts import qic, sample_healthcare_qi_data

sample = sample_healthcare_qi_data()
chart = qic(sample, x="month", y="wait_time", chart="i")
chart.save_png("waiting_times.png")

Sample Data

from pyqicharts import sample_healthcare_qi_data, sample_subgroup_measurements, get_sample_data_path

healthcare = sample_healthcare_qi_data()
subgroups = sample_subgroup_measurements()
path = get_sample_data_path("sample_healthcare_qi_data.csv")

Main Public APIs

  • qic(...) creates a matplotlib chart and returns a QicResult.
  • qic_table(...) returns the calculation table as a pandas DataFrame.
  • pareto_chart(...) and pareto_table(...) support Pareto workflows.
  • export_png(...), export_excel(...), export_powerpoint(...) and create_report_bundle(...) support reporting.
  • create_report_pack_from_config(...), load_chart_config(...) and run_chart_batch(...) support batch report workflows.
  • powerbi_table(...), spc_summary_table(...), signal_table(...) and related helpers support dashboard imports.
  • validation_manifest(...), validation_summary(...) and compare_to_expected(...) support reviewed validation workflows.
  • qic_plotly(...), qic_altair(...) and qic_widget(...) provide optional interactive outputs.

Command Line

pyqicharts chart data.csv --x week --y value --chart i --output chart.png
pyqicharts report config.yml --output report
pyqicharts validate data.csv --config chart.yml

Validation Scope

The v2 stable production release distinguishes three kinds of evidence:

  1. Internal regression tests: automated tests that guard package behaviour.
  2. Reviewed examples: deterministic fixtures and expected-output tables reviewed for methodology consistency.
  3. External certification: independently certified reference outputs. These are not bundled in this stable production release.

See VALIDATION_REPORT.md, PARITY_REPORT.md and docs/reports/statistical_review.md for details.

Governance

For high-stakes use, validate local workflows with local subject-matter experts, maintain a record of data definitions, review chart choice, and document any operational decisions made from chart outputs.

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

pyqicharts-2.0.0.tar.gz (9.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyqicharts-2.0.0-py3-none-any.whl (63.7 kB view details)

Uploaded Python 3

File details

Details for the file pyqicharts-2.0.0.tar.gz.

File metadata

  • Download URL: pyqicharts-2.0.0.tar.gz
  • Upload date:
  • Size: 9.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for pyqicharts-2.0.0.tar.gz
Algorithm Hash digest
SHA256 d6cb4462dbc6f98317127c1d8d21d8fe2ecdc9e444b5a7d0d1a6271d92c3ee9c
MD5 d786c7c4f56889138d401e8f1b8998d3
BLAKE2b-256 bb6c01eeec51c28d43a99f6c23654e5136ca3ec9cb957acf9323f7d7340dbc7b

See more details on using hashes here.

File details

Details for the file pyqicharts-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: pyqicharts-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 63.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for pyqicharts-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c454cea6e933df2a8f3d41ac4ffae94cada61c8f0fdab5dfa8b6324c8c5a103
MD5 d6acb1d9dad7376f6059400b6d2eeace
BLAKE2b-256 8d88aa00bcdee59f9300587ab52e8cf5342dec173d6a134269760bfcd833f648

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