{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "35c354e9",
   "metadata": {},
   "source": [
    "# 2004 / 2005\n",
    "\n",
    "Progress points for the EFL Championship 2004 / 2005 season."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "cf557669",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2024-12-24T00:24:01.050575Z",
     "iopub.status.busy": "2024-12-24T00:24:01.050414Z",
     "iopub.status.idle": "2024-12-24T00:24:01.266520Z",
     "shell.execute_reply": "2024-12-24T00:24:01.266223Z"
    }
   },
   "outputs": [],
   "source": [
    "%config InlineBackend.figure_formats = ['svg']\n",
    "from proggyleg import proggyleg\n",
    "year = 2004\n",
    "league = \"E1\""
   ]
  },
  {
   "cell_type": "markdown",
   "id": "9bad09a6",
   "metadata": {},
   "source": [
    "## Cumulative Points\n",
    "\n",
    "The sum of points up to a given game played."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "46c827dd",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2024-12-24T00:24:01.268228Z",
     "iopub.status.busy": "2024-12-24T00:24:01.268121Z",
     "iopub.status.idle": "2024-12-24T00:24:02.895697Z",
     "shell.execute_reply": "2024-12-24T00:24:02.895337Z"
    }
   },
   "outputs": [
    {
     "data": {
      "image/svg+xml": [
       ""
      ],
      "text/plain": [
       ""
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "proggyleg.autoplot(year, league, which=\"cumulative\");"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "615a6001",
   "metadata": {},
   "source": [
    "## Extrapolated Points\n",
    "\n",
    "Final points assuming each team continues to score points at the same rate as they have so far."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "7042ae5c",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2024-12-24T00:24:02.898592Z",
     "iopub.status.busy": "2024-12-24T00:24:02.898477Z",
     "iopub.status.idle": "2024-12-24T00:24:03.060676Z",
     "shell.execute_reply": "2024-12-24T00:24:03.060377Z"
    }
   },
   "outputs": [
    {
     "data": {
      "image/svg+xml": [
       ""
      ],
      "text/plain": [
       ""
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "proggyleg.autoplot(year, league, which=\"extrapolated\");"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "e0f7c0df",
   "metadata": {},
   "source": [
    "## Position"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "a5fc9d7a",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2024-12-24T00:24:03.062992Z",
     "iopub.status.busy": "2024-12-24T00:24:03.062889Z",
     "iopub.status.idle": "2024-12-24T00:24:03.181954Z",
     "shell.execute_reply": "2024-12-24T00:24:03.181687Z"
    }
   },
   "outputs": [
    {
     "data": {
      "image/svg+xml": [
       ""
      ],
      "text/plain": [
       ""
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "proggyleg.autoplot(year, league, which=\"position\");"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "a03ac151",
   "metadata": {},
   "source": [
    "## Rolling Form\n",
    "\n",
    "Exponential weighted moving average of points won per game."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "5da0c13b",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2024-12-24T00:24:03.184000Z",
     "iopub.status.busy": "2024-12-24T00:24:03.183903Z",
     "iopub.status.idle": "2024-12-24T00:24:03.326080Z",
     "shell.execute_reply": "2024-12-24T00:24:03.325787Z"
    }
   },
   "outputs": [
    {
     "data": {
      "image/svg+xml": [
       ""
      ],
      "text/plain": [
       ""
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "proggyleg.autoplot(year, league, which=\"form\");"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3"
  },
  "mystnb": {
   "execution_mode": "off"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}