{ "cells": [ { "cell_type": "markdown", "id": "991b7857", "metadata": {}, "source": [ "# Lesson 14 activity solution" ] }, { "cell_type": "markdown", "id": "8ead7758", "metadata": {}, "source": [ "## Setup\n", "\n", "Import the required libraries and load the weather dataset." ] }, { "cell_type": "code", "execution_count": 1, "id": "c338227c", "metadata": {}, "outputs": [], "source": [ "import matplotlib.pyplot as plt\n", "import numpy as np\n", "import pandas as pd\n", "import seaborn as sns\n", "\n", "from scipy import stats" ] }, { "cell_type": "code", "execution_count": 2, "id": "8e58ac9f", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| \n", " | weather_condition | \n", "wind_strength | \n", "temperature_c | \n", "rainfall_inches | \n", "humidity_percent | \n", "pressure_hpa | \n", "
|---|---|---|---|---|---|---|
| 0 | \n", "Sunny | \n", "Light Breeze | \n", "8.2 | \n", "0.13 | \n", "48.8 | \n", "1016.5 | \n", "
| 1 | \n", "Snowy | \n", "Gale | \n", "1.6 | \n", "0.29 | \n", "89.6 | \n", "1009.4 | \n", "
| 2 | \n", "Rainy | \n", "Strong Wind | \n", "7.3 | \n", "0.01 | \n", "100.0 | \n", "1003.3 | \n", "
| 3 | \n", "Cloudy | \n", "Light Breeze | \n", "21.6 | \n", "0.62 | \n", "49.3 | \n", "1006.9 | \n", "
| 4 | \n", "Sunny | \n", "Calm | \n", "12.0 | \n", "1.09 | \n", "38.6 | \n", "1016.0 | \n", "