Datasets / Diabetes progression
BMI against disease progression
One point per patient, no aggregation: the spread around the trend is as much of the answer as the trend.
How it decided
Diabetes progression: 442 rows, 11 columns. bmi and progression.
442 rows in, 442 out across 2 columns. One point per patient, no aggregation: the spread around the trend is as much of the answer as the trend.
scatter. Two measures, no category and no time: a scatter of the raw rows.
Palette, spacing, axis titles and legend placement applied. 0 issues found.
The transformation
This is the code, not a description of it — the chart above was drawn from what it returns, and the notebook download runs the same lines against the same file.
result = df[["bmi", "progression"]]
What it charted
442 rows out of 442, 2 columns. First 8 shown.
| bmi | progression |
|---|---|
| 0.0617 | 151.0 |
| -0.0515 | 75.0 |
| 0.0445 | 141.0 |
| -0.0116 | 206.0 |
| -0.0364 | 135.0 |
| -0.0407 | 97.0 |
| -0.0472 | 138.0 |
| -0.0019 | 63.0 |