updatevf

parent 6d33769e
...@@ -9,14 +9,15 @@ ...@@ -9,14 +9,15 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 3, "execution_count": 102,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"%matplotlib inline\n", "%matplotlib inline\n",
"import matplotlib.pyplot as plt\n", "import matplotlib.pyplot as plt\n",
"import pandas as pd\n", "import pandas as pd\n",
"import isoweek" "import isoweek\n",
"import numpy as np"
] ]
}, },
{ {
...@@ -3546,44 +3547,47 @@ ...@@ -3546,44 +3547,47 @@
"yearly_incidence.hist(xrot=20)" "yearly_incidence.hist(xrot=20)"
] ]
}, },
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Reponse aux questions : années du maximum d'incience et années du minimum d'incidence."
]
},
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 95, "execution_count": 108,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
"data": { "name": "stdout",
"text/plain": [ "output_type": "stream",
"842373" "text": [
] "2009 842373\n"
}, ]
"execution_count": 95,
"metadata": {},
"output_type": "execute_result"
} }
], ],
"source": [ "source": [
"max(yearly_incidence)" "maxindex = np.argmax(yearly_incidence)\n",
"print(maxindex,max(yearly_incidence))"
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 93, "execution_count": 113,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
"data": { "name": "stdout",
"text/plain": [ "output_type": "stream",
"516689" "text": [
] "2002 516689\n"
}, ]
"execution_count": 93,
"metadata": {},
"output_type": "execute_result"
} }
], ],
"source": [ "source": [
"min(yearly_incidence)" "minindex = np.argmin(yearly_incidence)\n",
"print(minindex,min(yearly_incidence))"
] ]
}, },
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment