Conversation
| " # YOUR CODE HERE: Use the readline() or readlines() method to read the .csv file into 'contents'\n", | ||
| " \n", | ||
| " # YOUR CODE HERE: Iterate through 'contents' using a for loop and print each row for inspection" | ||
| " for line in f:\n", |
There was a problem hiding this comment.
The instruction specified use readline() or readlines().
Instead of using a for loop to append each row into contents, we can just do:
contents = f.readlines()
There was a problem hiding this comment.
Hey,
I corrected this issue and now use readlines() to read the CSV file.
Thanks
kelichiu
left a comment
There was a problem hiding this comment.
Incomplete
Code Execution
All code cells execute without errors.
Code Quality
Code is well-organized, concise, and includes necessary comments for clarity.
Data Handling
Data files are correctly handled and processed.
❌ Adherence to Instructions
Did not follows all instructions and requirements as per the assignment. Please see the comments. Use readlines() will lead to best practices.
Specific Criteria
- Reading in our files
Correctly prints out information from the first file. - Summarizing our data
Correctly defines patient_summary() function. Function processes data as per operation and outputs correctly shaped data (60 entries). - Checking for Errors
Correctly defines detect_problems() function. Function uses patient_summary() and check_zeros() to identify mean inflammation of 0 accurately.
Overall Assessment
Meets all the general and specific criteria, indicating a strong understanding of the assignment objectives.
kelichiu
left a comment
There was a problem hiding this comment.
Complete
Code Execution
All code cells execute without errors.
Code Quality
Code is well-organized, concise, and includes necessary comments for clarity.
Data Handling
Data files are correctly handled and processed.
Adherence to Instructions
Follows all instructions and requirements as per the assignment.
Specific Criteria
- Reading in our files
Correctly prints out information from the first file. - Summarizing our data
Correctly defines patient_summary() function. Function processes data as per operation and outputs correctly shaped data (60 entries). - Checking for Errors
Correctly defines detect_problems() function. Function uses patient_summary() and check_zeros() to identify mean inflammation of 0 accurately.
Overall Assessment
Meets all the general and specific criteria, indicating a strong understanding of the assignment objectives.
What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
Added answers to assignment 2 notebook.
What did you learn from the changes you have made?
Basic data analysis in python from CSV data files.
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
No
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
How were these changes tested?
Tested them manually.
A reference to a related issue in your repository (if applicable)
Checklist