{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "c:\\Users\\elikl\\Documents\\Uni\\yr3\\ML for industry\\utrecht-pollution-prediction\\.venv\\Lib\\site-packages\\tqdm\\auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n", " from .autonotebook import tqdm as notebook_tqdm\n" ] } ], "source": [ "from src.predict import get_data_and_predictions\n", "from src.data_api_calls import get_combined_data\n", "from src.past_data_api_calls import get_past_combined_data" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Data is already up to date.\n", "Data is already up to date.\n", "Number of rows with missing values dropped: 7\n", "Data is already up to date.\n", "Number of rows with missing values dropped: 7\n" ] } ], "source": [ "week_data, predictions_O3, predictions_NO2 = get_data_and_predictions()" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | date | \n", "NO2 | \n", "O3 | \n", "wind_speed | \n", "mean_temp | \n", "global_radiation | \n", "percipitation | \n", "pressure | \n", "minimum_visibility | \n", "humidity | \n", "weekday | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "2024-10-17 | \n", "22.804605 | \n", "22.769160 | \n", "51 | \n", "169 | \n", "43 | \n", "6 | \n", "10100 | \n", "371 | \n", "86 | \n", "Thursday | \n", "
1 | \n", "2024-10-18 | \n", "23.268500 | \n", "23.307332 | \n", "21 | \n", "155 | \n", "42 | \n", "39 | \n", "10140 | \n", "45 | \n", "97 | \n", "Friday | \n", "
2 | \n", "2024-10-19 | \n", "23.910064 | \n", "23.171714 | \n", "41 | \n", "147 | \n", "43 | \n", "16 | \n", "10141 | \n", "228 | \n", "89 | \n", "Saturday | \n", "
3 | \n", "2024-10-20 | \n", "22.573238 | \n", "23.537845 | \n", "81 | \n", "155 | \n", "0 | \n", "5 | \n", "10160 | \n", "415 | \n", "83 | \n", "Sunday | \n", "
4 | \n", "2024-10-21 | \n", "21.145700 | \n", "24.020696 | \n", "58 | \n", "144 | \n", "27 | \n", "43 | \n", "10206 | \n", "220 | \n", "92 | \n", "Monday | \n", "
5 | \n", "2024-10-22 | \n", "21.776580 | \n", "23.335886 | \n", "53 | \n", "114 | \n", "57 | \n", "49 | \n", "10269 | \n", "226 | \n", "92 | \n", "Tuesday | \n", "
6 | \n", "2024-10-23 | \n", "21.974794 | \n", "22.214689 | \n", "36 | \n", "112 | \n", "12 | \n", "0 | \n", "10328 | \n", "65 | \n", "97 | \n", "Wednesday | \n", "
7 | \n", "2024-10-24 | \n", "25.512568 | \n", "20.913710 | \n", "56 | \n", "104 | \n", "62 | \n", "0 | \n", "10247 | \n", "130 | \n", "94 | \n", "Thursday | \n", "