Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this code is throwing an error - - - - - - - - - - - - - - - - - - -

this code is throwing an error ----------------------------------------------------------------------------
ValueError Traceback (most recent call last)
Cell In[15], line 36
34 if __name__=="__main__":
35 filename ="M3_Data40.txt"
--->36 patient_data_list = parse_patient_data(filename)
37 filtered_patient_ids = filter_patient_data(patient_data_list)
39 print("Unique IDs of patients with age less than 56 and diagnosis TRUE:")
Cell In[15], line 20, in parse_patient_data(filename)
18 for line in file:
19 values = line.strip().split(',')
--->20 diagnosis, age, gender, chest_pain_type, resting_blood_pressure, serum_cholesterol = values
21 patient = PatientData(diagnosis, int(age), gender, chest_pain_type, int(resting_blood_pressure), int(serum_cholesterol))
22 patient_data_list.append(patient)
ValueError: not enough values to unpack (expected 6, got 1)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions