Skip to content

Assignment 2#2

Open
charissa-chan wants to merge 2 commits intomainfrom
assignment-2
Open

Assignment 2#2
charissa-chan wants to merge 2 commits intomainfrom
assignment-2

Conversation

@charissa-chan
Copy link
Copy Markdown
Owner

UofT-DSI | Python - Assignment 2

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

I have added python scripts, using numpy to open and read patient data files. I have also created functions to compute summary statistics for these data files and to detect data anomalies.

What did you learn from the changes you have made?

I have learned to open and read data files with numpy. I have also learned how to use numpy scripts to compute max, min and mean values for patient data contained in .csv files.

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

I did not consider other approaches because the assignment hints directed me towards numpy.

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

The earliest iteration of the patient_summary function returned strange float values starting with "np.float64". I realized that this came about because I did not specify a row-wise operation. Given that ax=1 (provided by assignment), I resolved the issue by setting axes = ax

How were these changes tested?

I manually checked question 1 of the assignment by comparing the output against the data file. I checked question 2 by calling the function using different parameters. I checked question 3 by manually identifying files with and without data anomalies (zeroes) and checking the result of the function.

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.

Perfect! Well done.

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