Skip to content

Finish Assignment 2#2

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

Finish Assignment 2#2
dzedze wants to merge 5 commits intomainfrom
assignment-2

Conversation

@dzedze
Copy link
Copy Markdown
Owner

@dzedze dzedze commented Dec 2, 2025

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

  • Added code to complete Assignment 2 per instructions.

What did you learn from the changes you have made?

  • How to summarize data for common statistics like min, max, and mean.
  • How to detect errors early in the given data before going deeply into other analytics.

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

n.a

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

  • Got a bit confused with np.where(), explored how it works in 2D and 3D arrays.

How were these changes tested?

  • Using the given testing cell.
  • Tried to apply on files with mean-zero issues.

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

n.a

Checklist

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

Copy link
Copy Markdown

@efantinatti efantinatti left a comment

Choose a reason for hiding this comment

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

Hi @dzedze Q1 is OK. Q2 you may consider running max and mean. Q3 you may also consider testing all the files and see which of them you get the True values.

Best,
E. Fantinatti

@dzedze dzedze requested a review from efantinatti December 11, 2025 21:37
@dzedze
Copy link
Copy Markdown
Owner Author

dzedze commented Dec 11, 2025

Hi @dzedze Q1 is OK. Q2 you may consider running max and mean. Q3 you may also consider testing all the files and see which of them you get the True values.

Best, E. Fantinatti

Thank you so much for your suggestions @efantinatti , I have updated my notebook regarding those requests, including tests for "max" and "mean" for Q2, and testing all the files for Q3.

Copy link
Copy Markdown

@efantinatti efantinatti left a comment

Choose a reason for hiding this comment

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

Hi @dzedze Q3 is great! Awesome! For Q2 check if mean should be the same value as max. What about the min as well? Could you also think about testing a different parameter out of these three and see print what happens?

Best,

@efantinatti

@dzedze
Copy link
Copy Markdown
Owner Author

dzedze commented Dec 11, 2025

Hi @dzedze Q3 is great! Awesome! For Q2 check if mean should be the same value as max. What about the min as well? Could you also think about testing a different parameter out of these three and see print what happens?

Best,

@efantinatti

Thank you @efantinatti , I have added tests to:

  • Make sure all operation should successfully compute values for all data points.
  • Print first 5 patients of each operation for visual confirmation
  • Ensure that max >= mean >= min
  • Ensure that with invalid operation, patient_summary() should raise ValueError

Hope that those should cover enough edge cases.

@dzedze dzedze requested a review from efantinatti December 11, 2025 22:47
Copy link
Copy Markdown

@efantinatti efantinatti left a comment

Choose a reason for hiding this comment

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

Hi @dzedze imoressive achievement! Congratulations. You can now merge it into main.

Best
@efantinatti

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