Skip to content

Edited assignment_2 notebook as per instructions#2

Open
amera6 wants to merge 1 commit intomainfrom
assignment-2
Open

Edited assignment_2 notebook as per instructions#2
amera6 wants to merge 1 commit intomainfrom
assignment-2

Conversation

@amera6
Copy link
Copy Markdown
Owner

@amera6 amera6 commented Nov 4, 2025

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

  • I can confirm that my changes are working as intended

Copy link
Copy Markdown

@tianyi21 tianyi21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants