{ "cells": [ { "cell_type": "markdown", "id": "7dc94a3d", "metadata": {}, "source": [ "# 2023 / 2024\n", "\n", "Progress points for the Scottish Premiership 2023 / 2024 season." ] }, { "cell_type": "code", "execution_count": 1, "id": "ef3734b6", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:27:21.773527Z", "iopub.status.busy": "2024-12-24T00:27:21.773341Z", "iopub.status.idle": "2024-12-24T00:27:21.994015Z", "shell.execute_reply": "2024-12-24T00:27:21.993630Z" } }, "outputs": [], "source": [ "%config InlineBackend.figure_formats = ['svg']\n", "from proggyleg import proggyleg\n", "year = 2023\n", "league = \"SC0\"" ] }, { "cell_type": "markdown", "id": "2dc9fab0", "metadata": {}, "source": [ "## Cumulative Points\n", "\n", "The sum of points up to a given game played." ] }, { "cell_type": "code", "execution_count": 2, "id": "0496fee8", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:27:21.996039Z", "iopub.status.busy": "2024-12-24T00:27:21.995896Z", "iopub.status.idle": "2024-12-24T00:27:23.579744Z", "shell.execute_reply": "2024-12-24T00:27:23.579448Z" } }, "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": "508fff8c", "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": "7f3a7038", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:27:23.582129Z", "iopub.status.busy": "2024-12-24T00:27:23.581972Z", "iopub.status.idle": "2024-12-24T00:27:23.681071Z", "shell.execute_reply": "2024-12-24T00:27:23.680790Z" } }, "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": "c873769b", "metadata": {}, "source": [ "## Position" ] }, { "cell_type": "code", "execution_count": 4, "id": "422282dd", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:27:23.682656Z", "iopub.status.busy": "2024-12-24T00:27:23.682558Z", "iopub.status.idle": "2024-12-24T00:27:23.785380Z", "shell.execute_reply": "2024-12-24T00:27:23.785102Z" } }, "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": "1fe7463d", "metadata": {}, "source": [ "## Rolling Form\n", "\n", "Exponential weighted moving average of points won per game." ] }, { "cell_type": "code", "execution_count": 5, "id": "4a0758b4", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:27:23.787097Z", "iopub.status.busy": "2024-12-24T00:27:23.786998Z", "iopub.status.idle": "2024-12-24T00:27:23.889225Z", "shell.execute_reply": "2024-12-24T00:27:23.888929Z" } }, "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 }