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.3.tar.gz (12.7 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.3-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pac_stats-0.1.3.tar.gz
  • Upload date:
  • Size: 12.7 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.3.tar.gz
Algorithm Hash digest
SHA256 48433b95b630167d41759aac0369858a33f4511a418a199e250c6f5bd26c6644
MD5 bf68085a29261a6851498048f63ad1e9
BLAKE2b-256 31a9e1604e90d767d4caca9b884ac278766cd0a5f270176039633240b3283894

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pac_stats-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 043edf57b4f40132a73ee091d0bddfff9cb1fb0590c31cef076caa607eb475e8
MD5 7f4e13f893894e78d2315e83e4d4c1df
BLAKE2b-256 a8f1b9ca146dd9eed8e5804c220f7ad340607dba4eee8b35e823a8e5667e7331

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