File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
02_activities/assignments Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 9696 " with open(all_paths[0], 'r') as f:\n " ,
9797 " # YOUR CODE HERE: Use the readline() or readlines() method to read the .csv file into a variable\n " ,
9898 " \n " ,
99- " dataset = f.readlines()\n " , # reads only first item inflammation_01.csv
99+ " dataset = f.readlines(),
100+ " # reads only first item inflammation_01.csv
100101 " # YOUR CODE HERE: Iterate through the variable using a for loop and print each row for inspection"
101102 " for x in dataset:\n " ,
102103 " print(x)"
269270 " #YOUR CODE HERE: Use patient_summary() to get the means and check_zeros() to check for zeros in the means\n " ,
270271 " mean_data = patient_summary(file_path, 'mean')\n " ,
271272 " result = check_zeros(mean_data)\n " ,
272- " if result:\n " ,
273- " print(f\" check zero returned {result}, i.e average (mean) inflammation score of 0" ),
274273 " return result"
275274 " \n " ,
276275 " return"
You can’t perform that action at this time.
0 commit comments