<jupyter_start><jupyter_text>Code Sets Exercise 2: Procedure Code Grouping  Datasets from 2018 CA inpatient dataset - https://data.chhs.ca.gov/dataset/hospital-inpatient-diagnosis-procedure-and-external-cause-codes/- Attribution to CA https://data.chhs.ca.gov/pages/terms  Instructions- Please use the following dataset from the state of California that provides the total inpatient diagnosis counts using the ICD10 - PCS code set. - Give the codes that have 'CORONARY ARTERY" in the description- What percentage of primary procedure codes could be grouped at the B category level? - What is the most number of characters that you can use to group secondary procedure codes and be above Z %?<jupyter_code>import pandas as pd
import numpy as np
ca_icd_pc_path = './ICD-10-PCS-Table 1.csv'
#last row is malformed
proc_df = pd.read_csv(ca_icd_pc_path).fillna(0)[:-1]
proc_df.head()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.07929515418502203, 'fraction_numerical': 0.013215859030837005, 'mean_word_length': 4.980263157894737, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '235149', 'license': 'MIT', 'n_tokens_mistral': 289, 'n_tokens_neox': 263, 'n_words': 104, 'path': 'lesson-3-EHR-Code-Sets/exercises/starter/Lesson_Code Sets_Exercise_2_Starter_Code.ipynb', 'repo_name': 'datasolver/udacity_AI_for_Healthcare_EHR', 'size': '908'}