Skip to content

UofT-DSI | Python - Assignment 2#2

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

UofT-DSI | Python - Assignment 2#2
francesbruno wants to merge 1 commit intomainfrom
assignment-2

Conversation

@francesbruno
Copy link
Owner

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

Creating patient_summary() to return mean, max, or min values for each patient, and creating detect_problems() to check for zero mean inflammation values.

What did you learn from the changes you have made?

How to read CSV data using VS code, use NumPy to summarize data by row, and build simple functions that return values.

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

I considered using loops and lists, but NumPy was the ideal approach

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

Understanding axis=1. Recalled that each row represents one patient, so the summary needed to be calculated across rows.

How were these changes tested?

I ran the notebook cells in order and checked that the outputs matched the expected results with the help of prompts.

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

N/A

Checklist

  • [FB] I can confirm that my changes are working as intended

Copy link

@anjali-deshpande-hub anjali-deshpande-hub left a comment

Choose a reason for hiding this comment

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

Well done!

" mean_values = patient_summary(file_path, 'mean')\n",
" return check_zeros(mean_values)\n",
"\n",
" return"

Choose a reason for hiding this comment

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

This return statement is not required. It will never come here.

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