GEOG 30323: Data Analysis & Visualization
2026-09-22
The greatest value of a picture is when it forces us to notice what we never expected to see.
https://www.nytimes.com/interactive/2018/08/04/upshot/up-birth-age-gap.html
seaborn plotsMany, many more in these categories - these are just our focus for today!
name gdp_pc gdp_growth pri sec ter other pct_65plus
0 Aguascalientes 214.5 -1.9 4.3 30.3 64.7 0.7 7.2
1 Baja California 233.5 0.3 5.2 29.5 61.4 3.9 7.1
2 Baja California Sur 211.8 3.8 5.9 18.8 74.8 0.5 6.6
3 Campeche 497.3 -6.7 17.6 18.8 63.4 0.2 7.9
4 Chiapas 64.4 2.2 30.9 18.0 50.9 0.2 6.0
How about sorting our data?
name gdp_pc gdp_growth pri sec ter other pct_65plus
3 Campeche 497.3 -6.7 17.6 18.8 63.4 0.2 7.9
6 Ciudad de México 422.5 2.2 0.6 13.5 84.4 1.5 12.0
18 Nuevo León 326.6 3.4 1.3 33.5 64.7 0.5 8.0
7 Coahuila 275.0 -0.5 2.2 37.6 59.4 0.8 7.9
25 Sonora 265.0 -0.3 8.9 28.3 61.0 1.8 8.8
seabornseabornseabornseabornseabornlmplot and regplot functionspandas: .corr()-0.4880127198490067
GEOG 30323 | Data Analysis & Visualization