Alcohol against colour intensity, by cultivar
Two chemical measures with the cultivar as colour: the clusters are the answer, not any single axis.
How it decided
Wine recognition: 178 rows, 14 columns. alcohol, color_intensity and cultivar.
178 rows in, 178 out across 3 columns. Two chemical measures with the cultivar as colour: the clusters are the answer, not any single axis.
scatter. Two measures split by a category: a scatter, capped at three series.
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[["alcohol", "color_intensity", "cultivar"]]
What it charted
178 rows out of 178, 3 columns. First 8 shown.
| alcohol | color_intensity | cultivar |
|---|---|---|
| 14.23 | 5.64 | class_0 |
| 13.2 | 4.38 | class_0 |
| 13.16 | 5.68 | class_0 |
| 14.37 | 7.8 | class_0 |
| 13.24 | 4.32 | class_0 |
| 14.2 | 6.75 | class_0 |
| 14.39 | 5.25 | class_0 |
| 14.06 | 5.05 | class_0 |