PISA Score
OECD PISA 2022 scores measuring 15-year-olds' performance in reading, mathematics, and science.
import polars as pl
import polarise
from polarise.datasets import get_education_data
df = get_education_data()
Heatmap across all scores
{ cmap="Mint" · colorspace }
(df.style()
.heat_map(["Reading", "Math", "Science"], cmap="Mint")
.fashion_scientific()
.caption("Table 1: OECD PISA 2022 Scores by Country")
.show()
)
Table 1: OECD PISA 2022 Scores by Country
| Country | Reading | Math | Science | GDP_per_capita |
|---|---|---|---|---|
| Estonia | 511 | 510 | 526 | 27.9 |
| Ireland | 516 | 492 | 504 | 99.1 |
| Poland | 489 | 489 | 513 | 18.7 |
| Finland | 490 | 484 | 511 | 53.1 |
| Netherlands | 459 | 493 | 488 | 58.3 |
Best and worst math scores
{ cmap="blues" · built-in }
(df.style()
.highlight_max("Math", fill="gold")
.highlight_min("Math", fill="alert_orange")
.gradient("GDP_per_capita", cmap="blues")
.fashion_minimal()
.title("Math Performance vs Wealth")
.show()
)
Math Performance vs Wealth
| Country | Reading | Math | Science | GDP_per_capita |
|---|---|---|---|---|
| Estonia | 511 | 510 | 526 | 27.9 |
| Ireland | 516 | 492 | 504 | 99.1 |
| Poland | 489 | 489 | 513 | 18.7 |
| Finland | 490 | 484 | 511 | 53.1 |
| Netherlands | 459 | 493 | 488 | 58.3 |
Bar view across subjects
(df.style()
.bar("Reading").bar("Math",fill='gold').bar("Science", fill='orange')
.fashion_compact()
.title("PISA Scores — Bar View")
.show()
)
PISA Scores — Bar View
| Country | Reading | Math | Science | GDP_per_capita |
|---|---|---|---|---|
| Estonia | 511 | 510 | 526 | 27.9 |
| Ireland | 516 | 492 | 504 | 99.1 |
| Poland | 489 | 489 | 513 | 18.7 |
| Finland | 490 | 484 | 511 | 53.1 |
| Netherlands | 459 | 493 | 488 | 58.3 |