{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import numpy as np\n", "import matplotlib as mpl\n", "import matplotlib.pyplot as plt\n", "import sklearn.linear_model" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "# Get the data\n", "country_stats = pd.read_csv('data/country_stats.csv')" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| \n", " | Country | \n", "GDP per capita | \n", "Life satisfaction | \n", "
|---|---|---|---|
| 0 | \n", "South Africa | \n", "6100.354 | \n", "4.7 | \n", "
| 1 | \n", "Turkey | \n", "8957.894 | \n", "5.5 | \n", "
| 2 | \n", "Russia | \n", "11162.652 | \n", "5.8 | \n", "
| 3 | \n", "Poland | \n", "14901.547 | \n", "6.1 | \n", "
| 4 | \n", "Hungary | \n", "17463.284 | \n", "5.6 | \n", "