Skip to content

UofT-DSI | python - Assignment 2#2

Merged
Chun-YuanChen merged 1 commit intomainfrom
assignment-2
Sep 4, 2025
Merged

UofT-DSI | python - Assignment 2#2
Chun-YuanChen merged 1 commit intomainfrom
assignment-2

Conversation

@Chun-YuanChen
Copy link
Owner

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)

I wrote some code and functions to read 12 .csv files, generate patient descriptive statistics, and add an error check to flag files where any patients have a mean inflammation score of 0. I also left a few notes.

What did you learn from the changes you have made?

In this practice, I dug deeper into defining and building functions with more elements, and tried applying them in different purposes. The most important thing is that a custom function, if it takes all conditions into account, can cut the work in half!

Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?

This assignment breaks the tasks into three parts (i.e., reading and displaying data, data summarization, and error detection). I was thinking it might be possible to write a single function that combines all three tasks in the future.

Were there any challenges? If so, what issue(s) did you face? How did you overcome it?

Since a task can often be done in many ways, one challenge was figuring out how to write efficient code. Another was making sure a function could handle all possible conditions without missing anything, which could potentially cause errors later. I tried writing more than one alternative that served the same purpose and compared them.

How were these changes tested?

I wrote some additional code to check the data, such as applying different conditions to see if the function still works. I also went back to the raw data to make sure the results lined up with the function’s output.

A reference to a related issue in your repository (if applicable)

None.

Checklist

  • I can confirm that my changes are working as intended

Copy link

@DwardEE DwardEE left a comment

Choose a reason for hiding this comment

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

Excellent job!

No issues with your submission. Keep up the good work.

@Chun-YuanChen
Copy link
Owner Author

Excellent job!

No issues with your submission. Keep up the good work.

Thanks so much for reviewing and for the kind words, Edward!

@Chun-YuanChen Chun-YuanChen merged commit f0f4a9b into main Sep 4, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants