{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "bd64a142",
   "metadata": {},
   "source": [
    "# 2022 / 2023\n",
    "\n",
    "Progress points for the EFL League Two 2022 / 2023 season."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "23ccbefd",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2025-11-03T19:55:10.599080Z",
     "iopub.status.busy": "2025-11-03T19:55:10.598961Z",
     "iopub.status.idle": "2025-11-03T19:55:10.900518Z",
     "shell.execute_reply": "2025-11-03T19:55:10.900075Z"
    }
   },
   "outputs": [],
   "source": [
    "%config InlineBackend.figure_formats = ['svg']\n",
    "from proggyleg import proggyleg\n",
    "year = 2022\n",
    "league = \"E3\""
   ]
  },
  {
   "cell_type": "markdown",
   "id": "99bc0995",
   "metadata": {},
   "source": [
    "## Cumulative Points\n",
    "\n",
    "The sum of points up to a given game played."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "c02e7668",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2025-11-03T19:55:10.901983Z",
     "iopub.status.busy": "2025-11-03T19:55:10.901820Z",
     "iopub.status.idle": "2025-11-03T19:55:12.674759Z",
     "shell.execute_reply": "2025-11-03T19:55:12.674293Z"
    }
   },
   "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": "92d28ad6",
   "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": "8645c953",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2025-11-03T19:55:12.676848Z",
     "iopub.status.busy": "2025-11-03T19:55:12.676724Z",
     "iopub.status.idle": "2025-11-03T19:55:12.961190Z",
     "shell.execute_reply": "2025-11-03T19:55:12.960699Z"
    }
   },
   "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": "e355d978",
   "metadata": {},
   "source": [
    "## Position"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "e1be6f25",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2025-11-03T19:55:12.963369Z",
     "iopub.status.busy": "2025-11-03T19:55:12.963206Z",
     "iopub.status.idle": "2025-11-03T19:55:13.247656Z",
     "shell.execute_reply": "2025-11-03T19:55:13.247246Z"
    }
   },
   "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": "1ee6f9a2",
   "metadata": {},
   "source": [
    "## Rolling Form\n",
    "\n",
    "Exponential weighted moving average of points won per game."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "d5d33197",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2025-11-03T19:55:13.249678Z",
     "iopub.status.busy": "2025-11-03T19:55:13.249555Z",
     "iopub.status.idle": "2025-11-03T19:55:13.544796Z",
     "shell.execute_reply": "2025-11-03T19:55:13.544394Z"
    }
   },
   "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
}