{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "54f80350",
   "metadata": {},
   "source": [
    "# 2018 / 2019\n",
    "\n",
    "Progress points for the EFL League One 2018 / 2019 season."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "75aa9605",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2025-11-03T19:55:58.991183Z",
     "iopub.status.busy": "2025-11-03T19:55:58.991052Z",
     "iopub.status.idle": "2025-11-03T19:55:59.282783Z",
     "shell.execute_reply": "2025-11-03T19:55:59.282330Z"
    }
   },
   "outputs": [],
   "source": [
    "%config InlineBackend.figure_formats = ['svg']\n",
    "from proggyleg import proggyleg\n",
    "year = 2018\n",
    "league = \"E2\""
   ]
  },
  {
   "cell_type": "markdown",
   "id": "3f1fe836",
   "metadata": {},
   "source": [
    "## Cumulative Points\n",
    "\n",
    "The sum of points up to a given game played."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "73c6ce35",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2025-11-03T19:55:59.284191Z",
     "iopub.status.busy": "2025-11-03T19:55:59.284033Z",
     "iopub.status.idle": "2025-11-03T19:56:00.961757Z",
     "shell.execute_reply": "2025-11-03T19:56:00.961319Z"
    }
   },
   "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": "a2515832",
   "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": "78754ec9",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2025-11-03T19:56:00.964408Z",
     "iopub.status.busy": "2025-11-03T19:56:00.964226Z",
     "iopub.status.idle": "2025-11-03T19:56:01.266917Z",
     "shell.execute_reply": "2025-11-03T19:56:01.266506Z"
    }
   },
   "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": "01db7a7b",
   "metadata": {},
   "source": [
    "## Position"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "7c318cc0",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2025-11-03T19:56:01.269051Z",
     "iopub.status.busy": "2025-11-03T19:56:01.268924Z",
     "iopub.status.idle": "2025-11-03T19:56:01.562767Z",
     "shell.execute_reply": "2025-11-03T19:56:01.562327Z"
    }
   },
   "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": "09f17121",
   "metadata": {},
   "source": [
    "## Rolling Form\n",
    "\n",
    "Exponential weighted moving average of points won per game."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "fdb1744e",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2025-11-03T19:56:01.564999Z",
     "iopub.status.busy": "2025-11-03T19:56:01.564844Z",
     "iopub.status.idle": "2025-11-03T19:56:01.871705Z",
     "shell.execute_reply": "2025-11-03T19:56:01.871263Z"
    }
   },
   "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
}