Skip to main content

pac-stats

PAC analytics toolkit for primary care (PCN) reporting.

Install

pip install pac-stats

Usage

from pac_stats import full_process

practice_one = pd.read_html(r"X:\File Path\PAC & MDT Master Search.html") # r"<File Path for practice report from EMIS>"
practice_one = practice_one[0] # get the dataframe from list created by read html
practice_one = practice_one[~practice_one.isnull().all(axis=1)] # remove null rows caused by confidential hidden patients
practice_one['Practice'] = 'Practice Name' # Practice Name or Abbreviation

practice_two = pd.read_html(r"X:\File Path\PAC & MDT Master Search.html") # r"<File Path for practice report from EMIS>"
practice_two = practice_one[0] # get the dataframe from list created by read html
practice_two = practice_one[~practice_one.isnull().all(axis=1)] # remove null rows caused by confidential hidden patients
practice_two['Practice'] = 'Practice Name' # Practice Name or Abbreviation

#repeat for each practice needed and add to reports list below
reports = [practice_one, practice_two]

icb, extended = full_process(
    reports=reports,
    pac_staff=pac_staff,
    export_path=r"C:\exports\output.xlsx"
)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pac_stats-0.1.2.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

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

pac_stats-0.1.2-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file pac_stats-0.1.2.tar.gz.

File metadata

  • Download URL: pac_stats-0.1.2.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for pac_stats-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9ae3ed3190d91ef1f2e970bd2e592d1474aecf619904937f1f5a306660250053
MD5 8740ce122981909ca1486fbf07e3c2d4
BLAKE2b-256 77142cbacc34c4b5fee48f339610fc4ee709de9ca3ae25036d55ba504c7a155c

See more details on using hashes here.

File details

Details for the file pac_stats-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pac_stats-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for pac_stats-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 81f2a3f6e9738079132929cf00adb2d0941f3fedd883e8c678f0dc6bc104f2a1
MD5 19b9fc16c545307fc1f6783e2080258a
BLAKE2b-256 997b36bbb8ca9cb029473664465b544e6d2b5b0a5f981abb4b4098bdf6787fc7

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 Sentry Error logging StatusPage Status page