Open
Conversation
tianyi21
approved these changes
Nov 5, 2025
tianyi21
left a comment
There was a problem hiding this comment.
Hi Adan,
✅ You implemented the function to read and display a file.
✅ You completed the patient_summary() function to summarize a file.
✅ You implemented the detect_problems() function to check the file.
🎉 Your A2 is complete!
🎊 All your Python assessments are now complete. Thank you for your participation, and I wish you all the best for your future!
Thanks,
Tianyi [LS]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
I added my own code in the designated parts of the jupyter notebook for questions 1-3. In question 1, I wrote code that would intake a list of csv files, then reads and pastes the contents of the first csv file in the list. In question 2, I wrote code that would calculate a pre-defined summary statistic (mean, maximum, or minimum) for every patient (row) in a given CSV file. In question 3, I wrote code that would flag potential data issues based on if a list of mean values for each patient contains a zero value.
What did you learn from the changes you have made?
I learned about opening and reading files from a list of multiple file paths. I also learned how to use f' strings for printing the row index and content for each patient.
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
I was hoping to print out a warning message for the
detect_problems()function but I did not know if it was possible to print and return the same item (check_zeros(means)) within a single function.Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
The hardest challenge was not relying on the automatic code suggestions in the VS Code application, as well as encountering errors for setting up the virtual environment. To overcome this, I pasted the assignment instructions and code in a person jupyter notebook on JupyterHub which does not have automated code suggestions. This let me work out the code without AI suggestions.
How were these changes tested?
I tested the changes using the pre-defined tests in the assignment notebook.
A reference to a related issue in your repository (if applicable)
Checklist