Skip to content

Assignment 2#2

Open
RMB2025 wants to merge 5 commits intomainfrom
assignment-2
Open

Assignment 2#2
RMB2025 wants to merge 5 commits intomainfrom
assignment-2

Conversation

@RMB2025
Copy link
Copy Markdown
Owner

@RMB2025 RMB2025 commented Dec 9, 2024

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

Added code to Patient Data

What did you learn from the changes you have made?

I leaned some Python coding

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

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

I kept getting error messages when I entered the path to the file. I sought help.

How were these changes tested?

By running the code.

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

@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.

  1. assignment_1.ipynb file changes are on assignment-2 branch as well. This is probably because you branch assignment-2 from assignment-1

  2. Question 2:
    numpy is optimized to perform operations on entire arrays at once rather than iterating row by row in Python. So instead of iterating over the rows (patients) and applying mean, max/min on each row, you can directly apply numpy functions on entire array. Its more efficient that way. In other words, remove for patient in data: and summary_values.append(np.mean(patient)) and directly do summary_values = np.mean(data, axis=ax)

  3. Question 3: You haven't used check_zeros function. Please code using the given function.

@anjali-deshpande-hub
Copy link
Copy Markdown

You have fixed items 2 and 3. Well done!
For item no. 1, I am still seeing assignment_1.ipynb changes in the branch and the PR. https://github.com/RMB2025/python/pull/2/files

Copy link
Copy Markdown

@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.

Its fixed now. Very good!

@RMB2025
Copy link
Copy Markdown
Owner Author

RMB2025 commented Dec 14, 2024 via email

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