twoHelixestwoHelixes Start free

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.

Question show BMI against progression
BMI against progression01002003000.061696206518683…-0.07303030271641…0.034750904671663…0.040139965041067…Bmi
Diabetes progression — 442 rows charted from 442, drawn as a scatter
How it decided
Finding the data99 ms

Diabetes progression: 442 rows, 11 columns. bmi and progression.

Shaping the data4 ms

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.

Choosing the chart3 ms

scatter. Two measures, no category and no time: a scatter of the raw rows.

Applying defaults1 ms

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.

bmiprogression
0.0617151.0
-0.051575.0
0.0445141.0
-0.0116206.0
-0.0364135.0
-0.040797.0
-0.0472138.0
-0.001963.0