This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import plotly.express as px | |
# Part of the PISA 2018 dataset with ISO country codes | |
data = [ | |
{"country": "Morocco", "iso_alpha": "MAR", "reading": 359, "math": 368, "science": 374}, | |
{"country": "Tunisia", "iso_alpha": "TUN", "reading": 361, "math": 353, "science": 363}, | |
{"country": "China (B-S-J-Z)", "iso_alpha": "CHN", "reading": 555, "math": 591, "science": 590}, | |
{"country": "Hong Kong (China)", "iso_alpha": "HKG", "reading": 524, "math": 551, "science": 517}, | |
{"country": "Macao (China)", "iso_alpha": "MAC", "reading": 525, "math": 558, "science": 544}, |