{ "cells": [ { "cell_type": "markdown", "id": "ade91839", "metadata": {}, "source": [ "# 2024 / 2025\n", "\n", "Progress points for the La Liga 2024 / 2025 season." ] }, { "cell_type": "code", "execution_count": 1, "id": "2ef546d1", "metadata": { "execution": { "iopub.execute_input": "2025-09-22T22:05:03.050666Z", "iopub.status.busy": "2025-09-22T22:05:03.050473Z", "iopub.status.idle": "2025-09-22T22:05:03.356666Z", "shell.execute_reply": "2025-09-22T22:05:03.356179Z" } }, "outputs": [], "source": [ "%config InlineBackend.figure_formats = ['svg']\n", "from proggyleg import proggyleg\n", "year = 2024\n", "league = \"SP1\"" ] }, { "cell_type": "markdown", "id": "0797bcb0", "metadata": {}, "source": [ "## Cumulative Points\n", "\n", "The sum of points up to a given game played." ] }, { "cell_type": "code", "execution_count": 2, "id": "4c2a6bac", "metadata": { "execution": { "iopub.execute_input": "2025-09-22T22:05:03.358204Z", "iopub.status.busy": "2025-09-22T22:05:03.358037Z", "iopub.status.idle": "2025-09-22T22:05:05.078434Z", "shell.execute_reply": "2025-09-22T22:05:05.077945Z" } }, "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": "ee8b5a85", "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": "93cdd037", "metadata": { "execution": { "iopub.execute_input": "2025-09-22T22:05:05.080180Z", "iopub.status.busy": "2025-09-22T22:05:05.080049Z", "iopub.status.idle": "2025-09-22T22:05:05.314006Z", "shell.execute_reply": "2025-09-22T22:05:05.313418Z" } }, "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": "e1616e4a", "metadata": {}, "source": [ "## Position" ] }, { "cell_type": "code", "execution_count": 4, "id": "db9897be", "metadata": { "execution": { "iopub.execute_input": "2025-09-22T22:05:05.315731Z", "iopub.status.busy": "2025-09-22T22:05:05.315593Z", "iopub.status.idle": "2025-09-22T22:05:05.547852Z", "shell.execute_reply": "2025-09-22T22:05:05.547391Z" } }, "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": "f8bb570d", "metadata": {}, "source": [ "## Rolling Form\n", "\n", "Exponential weighted moving average of points won per game." ] }, { "cell_type": "code", "execution_count": 5, "id": "e6a8edbd", "metadata": { "execution": { "iopub.execute_input": "2025-09-22T22:05:05.549355Z", "iopub.status.busy": "2025-09-22T22:05:05.549228Z", "iopub.status.idle": "2025-09-22T22:05:05.790307Z", "shell.execute_reply": "2025-09-22T22:05:05.789810Z" } }, "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 }