GitHub page: Python Novice Inflammation (swcarpentry)
The best way to learn how to program is to do something useful, so this introduction to Python is built around a common scientific task: data analysis.
Our imaginary colleague “Dr. Maverick” has invented a new miracle drug that promises to cure arthritis inflammation flare-ups after only 3 weeks since initially taking the medication! Naturally, we wish to see the clinical trial data, and after months of asking for the data they have finally provided us with a CSV spreadsheet containing the clinical trial data.
The CSV file contains the number of inflammation flare-ups per day for the 60 patients in the initial clinical trial, with the trial lasting 40 days. Each row corresponds to a patient, and each column corresponds to a day in the trial. Once a patient has their first inflammation flare-up they take the medication and wait a few weeks for it to take effect and reduce flare-ups.
(...) Read more...
Licence: Other (Attribution)
Keywords: automation, carpentries, data-analysis, data-visualization, english, functions, lesson, loops, matplotlib, numpy, programming, python, software-carpentry, stable
Version: 2023.04
Status: Active
Prerequisites:
You need to understand the concepts of files and
directories and how to start a Python interpreter
before tackling this lesson. This lesson sometimes references Jupyter
Notebook although you can use any Python interpreter mentioned in the Setup.
The commands in this lesson pertain to any officially
supported Python version. Newer versions usually have better error
printouts, so using newer Python versions is recommend if possible.
Date created: 2014-11-25
Date modified: 2025-09-04
Date published: 2025-09-16
Contributors: tbekolay, valentina-s, maxim-belkin, abostroem, ineelhere, PBarmby, rgaiacs, noatgnu, DamienIrving, dstndstn, tobyhodges, sparce, nsoranzo, drlabratory, davidbenncsiro, zkamvar, gcapes, maneesha, katkoler, leyder, kris-joseph, ldko, mkcor, jhamrick, janetriley, zonca, aaren, adamobeng, benlaken, bkatiemills
Activity log