{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import numpy as np\n", "\n", "import matplotlib.pyplot as plt\n", "%matplotlib inline\n", "import seaborn as sns\n", "\n", "import pymc3 as pm\n", "import arviz as az" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/usr/local/lib/python3.7/site-packages/ipykernel_launcher.py:18: FutureWarning: Sorting because non-concatenation axis is not aligned. A future version\n", "of pandas will change to not sort by default.\n", "\n", "To accept the future behavior, pass 'sort=False'.\n", "\n", "To retain the current behavior and silence the warning, pass 'sort=True'.\n", "\n" ] }, { "data": { "text/html": [ "
\n", " | date | \n", "league | \n", "round | \n", "score1 | \n", "score2 | \n", "season | \n", "status | \n", "team1 | \n", "team2 | \n", "t | \n", "
---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "2019-08-24 | \n", "Serie A | \n", "1 | \n", "0.0 | \n", "1.0 | \n", "0 | \n", "NaN | \n", "Parma | \n", "Juventus | \n", "0 | \n", "
1 | \n", "2019-08-24 | \n", "Serie A | \n", "1 | \n", "3.0 | \n", "4.0 | \n", "0 | \n", "NaN | \n", "ACF Fiorentina | \n", "SSC Napoli | \n", "0 | \n", "
2 | \n", "2019-08-25 | \n", "Serie A | \n", "1 | \n", "1.0 | \n", "0.0 | \n", "0 | \n", "NaN | \n", "Udinese Calcio | \n", "AC Milan | \n", "0 | \n", "
3 | \n", "2019-08-25 | \n", "Serie A | \n", "1 | \n", "0.0 | \n", "1.0 | \n", "0 | \n", "NaN | \n", "Cagliari Calcio | \n", "Brescia Calcio | \n", "0 | \n", "
4 | \n", "2019-08-25 | \n", "Serie A | \n", "1 | \n", "1.0 | \n", "1.0 | \n", "0 | \n", "NaN | \n", "Hellas Verona | \n", "Bologna FC | \n", "0 | \n", "