For this assignment, we will be working with inflammation-01.csv
, a simulated dataset representing the response of arthritis patients to a new drug. The data is sourced from here.
In this dataset, each row represents a different patient. Each column represents a different day. Each element in the dataset is the number of arthritis flare-ups that a patient has in a given day.
For each exercise, please submit your code along with your answer. You can have one script per exercise, or have all exercises together in one larger script – either way is fine. Since we haven’t yet learned how to write to a file in Python, it is ok to print out your answers and then manually copy them over to a text file.
You will submit your assignments tomorrow through Git, after you create a GitHub account overnight and we set it up in the morning.
Print the number of flare-ups that the fifth patient had on the first, tenth, and last day.
For each patient, calculate the average number of flare-ups per day. Print the average values for the first 10 patients.
These are the row averages - for example, patient 1 has 5.45 flare-ups per day on average; patient 2 has 5.425 flare-ups per day on average.
Using the average flare-ups per day calculated in part 2, print the highest and lowest average number of flare-ups per day.
For each day, print the difference in number of flare-ups between patients 1 and 5.
For each day, find the average number of flare-ups across all patients (i.e. the column averages). What is the highest average number of flare-ups per day?
Please do the following before the start of class tomorrow. Create a GitHub account using the following instructions: