{ "cells": [ { "cell_type": "markdown", "id": "ec15bcea", "metadata": {}, "source": [ "# Text annotations for means and medians on a plotnine graphic\n", "\n", "We'll start by reading in our dataset. It's a lot of data, so we probably want to add some nice summaries for people to understand what's going on." ] }, { "cell_type": "code", "execution_count": 37, "id": "1c053b0d", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | country | \n", "continent | \n", "gdp_per_capita | \n", "life_expectancy | \n", "population | \n", "
---|---|---|---|---|---|
0 | \n", "Afghanistan | \n", "Asia | \n", "663 | \n", "54.863 | \n", "22856302 | \n", "
1 | \n", "Albania | \n", "Europe | \n", "4195 | \n", "74.200 | \n", "3071856 | \n", "
2 | \n", "Algeria | \n", "Africa | \n", "5098 | \n", "68.963 | \n", "30533827 | \n", "
3 | \n", "Angola | \n", "Africa | \n", "2446 | \n", "45.234 | \n", "13926373 | \n", "
4 | \n", "Antigua and Barbuda | \n", "N. America | \n", "12738 | \n", "73.544 | \n", "77656 | \n", "