How it decided
Iris: 150 rows, 5 columns. the two petal measurements and the species label.
150 rows in, 150 out across 3 columns. The classic result: two of the three species separate cleanly on petals alone, and the pair that overlaps is the pair that always overlaps.
scatter. Two measures, a categorical split, no time: a scatter.
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[["petal_length_cm", "petal_width_cm", "species"]]
What it charted
150 rows out of 150, 3 columns. First 8 shown.
| petal_length_cm | petal_width_cm | species |
|---|---|---|
| 1.4 | 0.2 | setosa |
| 1.4 | 0.2 | setosa |
| 1.3 | 0.2 | setosa |
| 1.5 | 0.2 | setosa |
| 1.4 | 0.2 | setosa |
| 1.7 | 0.4 | setosa |
| 1.4 | 0.3 | setosa |
| 1.5 | 0.2 | setosa |