{ "cells": [ { "cell_type": "markdown", "id": "a6e5e5b5", "metadata": {}, "source": [ "# 2018 / 2019\n", "\n", "Progress points for the Bundesliga 2018 / 2019 season." ] }, { "cell_type": "code", "execution_count": 1, "id": "3350831a", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:26:32.409105Z", "iopub.status.busy": "2024-12-24T00:26:32.408980Z", "iopub.status.idle": "2024-12-24T00:26:32.619764Z", "shell.execute_reply": "2024-12-24T00:26:32.619484Z" } }, "outputs": [], "source": [ "%config InlineBackend.figure_formats = ['svg']\n", "from proggyleg import proggyleg\n", "year = 2018\n", "league = \"D1\"" ] }, { "cell_type": "markdown", "id": "c4a099e1", "metadata": {}, "source": [ "## Cumulative Points\n", "\n", "The sum of points up to a given game played." ] }, { "cell_type": "code", "execution_count": 2, "id": "b9d86f84", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:26:32.621408Z", "iopub.status.busy": "2024-12-24T00:26:32.621308Z", "iopub.status.idle": "2024-12-24T00:26:34.169026Z", "shell.execute_reply": "2024-12-24T00:26:34.168691Z" } }, "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": "8b3438a8", "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": "8e1c7214", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:26:34.171385Z", "iopub.status.busy": "2024-12-24T00:26:34.171299Z", "iopub.status.idle": "2024-12-24T00:26:34.290364Z", "shell.execute_reply": "2024-12-24T00:26:34.290065Z" } }, "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": "134504c4", "metadata": {}, "source": [ "## Position" ] }, { "cell_type": "code", "execution_count": 4, "id": "35307026", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:26:34.292492Z", "iopub.status.busy": "2024-12-24T00:26:34.292388Z", "iopub.status.idle": "2024-12-24T00:26:34.375793Z", "shell.execute_reply": "2024-12-24T00:26:34.375514Z" } }, "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": "5f5a6bc2", "metadata": {}, "source": [ "## Rolling Form\n", "\n", "Exponential weighted moving average of points won per game." ] }, { "cell_type": "code", "execution_count": 5, "id": "f1623d87", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:26:34.377665Z", "iopub.status.busy": "2024-12-24T00:26:34.377568Z", "iopub.status.idle": "2024-12-24T00:26:34.483416Z", "shell.execute_reply": "2024-12-24T00:26:34.483123Z" } }, "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 }