← All projects

Dr. Semmelweis and Handwashing

Did mandatory handwashing really cut deaths in Vienna’s maternity clinics?

Real-world dataHealthcarePythonpandasMatplotlibBootstrap
8.4 ptsdrop in monthly death proportion
10% → 2%average, before and after
1847handwashing made mandatory

The question

In the 1840s, one Vienna clinic had far more deaths from childbed fever than another. Semmelweis traced the gap to doctors moving from autopsies to deliveries and introduced handwashing.

What I did

Calculated the proportion of deaths for each clinic and year from 1841 to 1846.
Used monthly data to plot the proportion of deaths over time and marked the start of mandatory handwashing.
Compared the average before and after, then used a bootstrap to measure the uncertainty.

What I found

Clinic 1 had a higher death proportion than Clinic 2 in every year.
After handwashing began in summer 1847, the monthly proportion of deaths dropped by about 8.4 percentage points, from near 10% to near 2%.
The bootstrap confidence interval shows how certain that drop is.

Charts from the analysis

Yearly death proportion at the two clinics.
Yearly death proportion at the two clinics.
Monthly deaths before and after handwashing.
Monthly deaths before and after handwashing.

Limits to keep in mind

Real-world data

A before and after comparison supports the finding but cannot rule out every other change at the hospital in 1847.

View the code on GitHub ↗
← PreviousA Visual History of Nobel Prize WinnersNext →What Makes a Country Happy?