Temperature Anomaly
Global climate indicators by decade: temperature anomaly, CO₂ concentration, sea level rise, and Arctic ice extent.
import polars as pl
import polarise
from polarise.datasets import get_climate_data
df = get_climate_data()
Temperature anomaly (divergent gradient)
{ cmap="vik" · built-in or cmcrameri }
(df.style()
.gradient_divergent("Temp_Anomaly", center=0.0, cmap="vik")
.fashion_minimal()
.title("Global Temperature Anomaly by Decade")
.footnote("Anomaly relative to 1951–1980 baseline. Source: NASA GISS.")
.show()
)
Global Temperature Anomaly by Decade
| Decade | Temp_Anomaly | CO2_ppm | Sea_Level_mm | Arctic_Ice_M_km2 |
|---|---|---|---|---|
| 1880s | -0.27 | 290 | 0 | 7.5 |
| 1910s | -0.27 | 300 | 10 | 7.4 |
| 1940s | 0.05 | 310 | 30 | 7.3 |
| 1970s | 0.01 | 326 | 50 | 7.2 |
| 1990s | 0.33 | 354 | 90 | 6.8 |
| 2000s | 0.62 | 377 | 150 | 6.2 |
| 2010s | 0.93 | 395 | 210 | 5.1 |
| 2020s | 1.17 | 417 | 250 | 4.7 |
Anomaly relative to 1951–1980 baseline. Source: NASA GISS.
CO₂ and temperature bars
{ cmap="Heat 2" · colorspace }
(df.style()
.gradient("CO2_ppm", cmap="Heat 2")
.bar("Temp_Anomaly", fill_pos="#FF6347", fill_neg="steelblue")
.fashion_grid()
.title("CO₂ and Temperature Trends")
.show()
)
CO₂ and Temperature Trends
| Decade | Temp_Anomaly | CO2_ppm | Sea_Level_mm | Arctic_Ice_M_km2 |
|---|---|---|---|---|
| 1880s | -0.27 | 290 | 0 | 7.5 |
| 1910s | -0.27 | 300 | 10 | 7.4 |
| 1940s | 0.05 | 310 | 30 | 7.3 |
| 1970s | 0.01 | 326 | 50 | 7.2 |
| 1990s | 0.33 | 354 | 90 | 6.8 |
| 2000s | 0.62 | 377 | 150 | 6.2 |
| 2010s | 0.93 | 395 | 210 | 5.1 |
| 2020s | 1.17 | 417 | 250 | 4.7 |
Threshold alerts
(df.style()
.highlight_above("CO2_ppm", value=400)
.highlight_below("Arctic_Ice_M_km2", value=6.0, fill="#FF6347")
.fashion_scientific()
.caption("Table 2: Climate indicators exceeding critical thresholds")
.show()
)
Table 2: Climate indicators exceeding critical thresholds
| Decade | Temp_Anomaly | CO2_ppm | Sea_Level_mm | Arctic_Ice_M_km2 |
|---|---|---|---|---|
| 1880s | -0.27 | 290 | 0 | 7.5 |
| 1910s | -0.27 | 300 | 10 | 7.4 |
| 1940s | 0.05 | 310 | 30 | 7.3 |
| 1970s | 0.01 | 326 | 50 | 7.2 |
| 1990s | 0.33 | 354 | 90 | 6.8 |
| 2000s | 0.62 | 377 | 150 | 6.2 |
| 2010s | 0.93 | 395 | 210 | 5.1 |
| 2020s | 1.17 | 417 | 250 | 4.7 |