{ "cells": [ { "cell_type": "code", "execution_count": 18, "metadata": {}, "outputs": [], "source": [ "# [Load packages]\n", "\n", "# To call functions outside of this folder\n", "import sys \n", "sys.path.insert(0, '..')\n", "\n", "import pandas as pd\n", "from src.forecaster import Forecaster\n", "from src.analyser import Analyser\n", "import logging\n", "\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Load data and fit forecaster" ] }, { "cell_type": "code", "execution_count": 19, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Filtered out only y and gas_regm columns\n" ] }, { "data": { "text/html": [ "
\n", " | y | \n", "gas_regm | \n", "
---|---|---|
datetime | \n", "\n", " | \n", " |
2000-01-31 | \n", "41.0 | \n", "1.289 | \n", "
2000-02-29 | \n", "41.0 | \n", "1.377 | \n", "
2000-03-31 | \n", "45.0 | \n", "1.516 | \n", "
\n", " | y | \n", "gas_regm | \n", "
---|---|---|
datetime | \n", "\n", " | \n", " |
2000-01-31 | \n", "41.0 | \n", "1.289 | \n", "
2000-02-29 | \n", "41.0 | \n", "1.377 | \n", "
2000-03-31 | \n", "45.0 | \n", "1.516 | \n", "
2000-04-30 | \n", "47.0 | \n", "1.465 | \n", "
2000-05-31 | \n", "47.0 | \n", "1.487 | \n", "
... | \n", "... | \n", "... | \n", "
2022-08-31 | \n", "93.0 | \n", "3.975 | \n", "
2022-09-30 | \n", "90.0 | \n", "3.700 | \n", "
2022-10-31 | \n", "90.0 | \n", "3.815 | \n", "
2022-11-30 | \n", "90.0 | \n", "3.685 | \n", "
2022-12-31 | \n", "90.0 | \n", "3.210 | \n", "
276 rows × 2 columns
\n", "\n", " | weekday | \n", "
---|---|
2000-01-31 | \n", "0 | \n", "
2000-02-29 | \n", "1 | \n", "
2000-03-31 | \n", "4 | \n", "
2000-04-30 | \n", "6 | \n", "
2000-05-31 | \n", "2 | \n", "
... | \n", "... | \n", "
2023-08-31 | \n", "3 | \n", "
2023-09-30 | \n", "5 | \n", "
2023-10-31 | \n", "1 | \n", "
2023-11-30 | \n", "3 | \n", "
2023-12-31 | \n", "6 | \n", "
288 rows × 1 columns
\n", "