{ "cells": [ { "cell_type": "markdown", "id": "055ff273", "metadata": {}, "source": [ "# 2023 / 2024\n", "\n", "Progress points for the Premier League 2023 / 2024 season." ] }, { "cell_type": "code", "execution_count": 1, "id": "c060ccb6", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:23:51.306175Z", "iopub.status.busy": "2024-12-24T00:23:51.305604Z", "iopub.status.idle": "2024-12-24T00:23:51.537191Z", "shell.execute_reply": "2024-12-24T00:23:51.536890Z" } }, "outputs": [], "source": [ "%config InlineBackend.figure_formats = ['svg']\n", "from proggyleg import proggyleg\n", "year = 2023\n", "league = \"E0\"" ] }, { "cell_type": "markdown", "id": "77340eef", "metadata": {}, "source": [ "## Cumulative Points\n", "\n", "The sum of points up to a given game played." ] }, { "cell_type": "code", "execution_count": 2, "id": "573ddbba", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:23:51.538877Z", "iopub.status.busy": "2024-12-24T00:23:51.538774Z", "iopub.status.idle": "2024-12-24T00:23:55.351604Z", "shell.execute_reply": "2024-12-24T00:23:55.351267Z" } }, "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": "75ce61de", "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": "aeaf8074", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:23:55.353919Z", "iopub.status.busy": "2024-12-24T00:23:55.353827Z", "iopub.status.idle": "2024-12-24T00:23:55.466912Z", "shell.execute_reply": "2024-12-24T00:23:55.466666Z" } }, "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": "168aa95b", "metadata": {}, "source": [ "## Position" ] }, { "cell_type": "code", "execution_count": 4, "id": "b06c0908", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:23:55.468770Z", "iopub.status.busy": "2024-12-24T00:23:55.468671Z", "iopub.status.idle": "2024-12-24T00:23:55.585618Z", "shell.execute_reply": "2024-12-24T00:23:55.585324Z" } }, "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": "3f936054", "metadata": {}, "source": [ "## Rolling Form\n", "\n", "Exponential weighted moving average of points won per game." ] }, { "cell_type": "code", "execution_count": 5, "id": "22a0fa40", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:23:55.587509Z", "iopub.status.busy": "2024-12-24T00:23:55.587406Z", "iopub.status.idle": "2024-12-24T00:23:55.705800Z", "shell.execute_reply": "2024-12-24T00:23:55.705530Z" } }, "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 }