{ "cells": [ { "cell_type": "markdown", "id": "fe9f1ea1", "metadata": {}, "source": [ "# 2022 / 2023\n", "\n", "Progress points for the Bundesliga 2022 / 2023 season." ] }, { "cell_type": "code", "execution_count": 1, "id": "41d3058b", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:26:47.876641Z", "iopub.status.busy": "2024-12-24T00:26:47.876476Z", "iopub.status.idle": "2024-12-24T00:26:48.089993Z", "shell.execute_reply": "2024-12-24T00:26:48.089719Z" } }, "outputs": [], "source": [ "%config InlineBackend.figure_formats = ['svg']\n", "from proggyleg import proggyleg\n", "year = 2022\n", "league = \"D1\"" ] }, { "cell_type": "markdown", "id": "dd97dbfb", "metadata": {}, "source": [ "## Cumulative Points\n", "\n", "The sum of points up to a given game played." ] }, { "cell_type": "code", "execution_count": 2, "id": "1c37a387", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:26:48.091726Z", "iopub.status.busy": "2024-12-24T00:26:48.091627Z", "iopub.status.idle": "2024-12-24T00:26:49.702188Z", "shell.execute_reply": "2024-12-24T00:26:49.701890Z" } }, "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": "ba81b59a", "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": "41bf33db", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:26:49.704551Z", "iopub.status.busy": "2024-12-24T00:26:49.704465Z", "iopub.status.idle": "2024-12-24T00:26:49.806543Z", "shell.execute_reply": "2024-12-24T00:26:49.806277Z" } }, "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": "a60d810b", "metadata": {}, "source": [ "## Position" ] }, { "cell_type": "code", "execution_count": 4, "id": "918e0d0c", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:26:49.808446Z", "iopub.status.busy": "2024-12-24T00:26:49.808348Z", "iopub.status.idle": "2024-12-24T00:26:49.916721Z", "shell.execute_reply": "2024-12-24T00:26:49.916420Z" } }, "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": "bc770927", "metadata": {}, "source": [ "## Rolling Form\n", "\n", "Exponential weighted moving average of points won per game." ] }, { "cell_type": "code", "execution_count": 5, "id": "06e8a460", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:26:49.918587Z", "iopub.status.busy": "2024-12-24T00:26:49.918492Z", "iopub.status.idle": "2024-12-24T00:26:50.026925Z", "shell.execute_reply": "2024-12-24T00:26:50.026634Z" } }, "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 }