{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "9e7d35ce",
   "metadata": {},
   "source": [
    "# 2016 / 2017\n",
    "\n",
    "Progress points for the EFL League One 2016 / 2017 season."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "9d5c1e7a",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2025-11-03T19:55:47.639627Z",
     "iopub.status.busy": "2025-11-03T19:55:47.639506Z",
     "iopub.status.idle": "2025-11-03T19:55:47.928223Z",
     "shell.execute_reply": "2025-11-03T19:55:47.927709Z"
    }
   },
   "outputs": [],
   "source": [
    "%config InlineBackend.figure_formats = ['svg']\n",
    "from proggyleg import proggyleg\n",
    "year = 2016\n",
    "league = \"E2\""
   ]
  },
  {
   "cell_type": "markdown",
   "id": "952ab5a3",
   "metadata": {},
   "source": [
    "## Cumulative Points\n",
    "\n",
    "The sum of points up to a given game played."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "54c72571",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2025-11-03T19:55:47.929671Z",
     "iopub.status.busy": "2025-11-03T19:55:47.929510Z",
     "iopub.status.idle": "2025-11-03T19:55:49.617877Z",
     "shell.execute_reply": "2025-11-03T19:55:49.617403Z"
    }
   },
   "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": "5ea95bb8",
   "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": "424c1b86",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2025-11-03T19:55:49.620048Z",
     "iopub.status.busy": "2025-11-03T19:55:49.619918Z",
     "iopub.status.idle": "2025-11-03T19:55:49.926627Z",
     "shell.execute_reply": "2025-11-03T19:55:49.926154Z"
    }
   },
   "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": "0635bcb9",
   "metadata": {},
   "source": [
    "## Position"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "7a32dfe9",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2025-11-03T19:55:49.928753Z",
     "iopub.status.busy": "2025-11-03T19:55:49.928613Z",
     "iopub.status.idle": "2025-11-03T19:55:50.220231Z",
     "shell.execute_reply": "2025-11-03T19:55:50.219885Z"
    }
   },
   "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": "e0c0cab3",
   "metadata": {},
   "source": [
    "## Rolling Form\n",
    "\n",
    "Exponential weighted moving average of points won per game."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "12a7cfcf",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2025-11-03T19:55:50.222457Z",
     "iopub.status.busy": "2025-11-03T19:55:50.222329Z",
     "iopub.status.idle": "2025-11-03T19:55:50.524053Z",
     "shell.execute_reply": "2025-11-03T19:55:50.523473Z"
    }
   },
   "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
}