{ "cells": [ { "cell_type": "markdown", "id": "d530c4d8", "metadata": {}, "source": [ "# 2021 / 2022\n", "\n", "Progress points for the Ligue 1 2021 / 2022 season." ] }, { "cell_type": "code", "execution_count": 1, "id": "397ca9f4", "metadata": { "execution": { "iopub.execute_input": "2025-09-23T23:54:58.301090Z", "iopub.status.busy": "2025-09-23T23:54:58.300897Z", "iopub.status.idle": "2025-09-23T23:54:58.598605Z", "shell.execute_reply": "2025-09-23T23:54:58.598163Z" } }, "outputs": [], "source": [ "%config InlineBackend.figure_formats = ['svg']\n", "from proggyleg import proggyleg\n", "year = 2021\n", "league = \"FR1\"" ] }, { "cell_type": "markdown", "id": "05e0d3ca", "metadata": {}, "source": [ "## Cumulative Points\n", "\n", "The sum of points up to a given game played." ] }, { "cell_type": "code", "execution_count": 2, "id": "412aa25c", "metadata": { "execution": { "iopub.execute_input": "2025-09-23T23:54:58.600075Z", "iopub.status.busy": "2025-09-23T23:54:58.599873Z", "iopub.status.idle": "2025-09-23T23:55:00.436486Z", "shell.execute_reply": "2025-09-23T23:55:00.436014Z" } }, "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": "86eeb242", "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": "70bda5b5", "metadata": { "execution": { "iopub.execute_input": "2025-09-23T23:55:00.438145Z", "iopub.status.busy": "2025-09-23T23:55:00.438021Z", "iopub.status.idle": "2025-09-23T23:55:00.660465Z", "shell.execute_reply": "2025-09-23T23:55:00.660010Z" } }, "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": "f2dca780", "metadata": {}, "source": [ "## Position" ] }, { "cell_type": "code", "execution_count": 4, "id": "15fc1835", "metadata": { "execution": { "iopub.execute_input": "2025-09-23T23:55:00.661865Z", "iopub.status.busy": "2025-09-23T23:55:00.661738Z", "iopub.status.idle": "2025-09-23T23:55:00.881323Z", "shell.execute_reply": "2025-09-23T23:55:00.880904Z" } }, "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": "36fbc49b", "metadata": {}, "source": [ "## Rolling Form\n", "\n", "Exponential weighted moving average of points won per game." ] }, { "cell_type": "code", "execution_count": 5, "id": "8da4a8d0", "metadata": { "execution": { "iopub.execute_input": "2025-09-23T23:55:00.882826Z", "iopub.status.busy": "2025-09-23T23:55:00.882705Z", "iopub.status.idle": "2025-09-23T23:55:01.117863Z", "shell.execute_reply": "2025-09-23T23:55:01.117458Z" } }, "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 }