You need to sign in or sign up before continuing.

no commit message

parent 6998d36a
......@@ -65,7 +65,7 @@
"metadata": {},
"outputs": [],
"source": [
"raw_data = pd.read_csv(data_url, skiprows=1)\n",
"raw_data = pd.read_csv(data_url , skiprows=1)\n",
"raw_data"
]
},
......@@ -142,7 +142,7 @@
"source": [
"Il restent deux petites modifications à faire.\n",
"\n",
"Premièrement, nous définissons les périodes d'observation\n",
"Premièrement, nous définissons les périodes d'observation\n",
"comme nouvel index de notre jeux de données. Ceci en fait\n",
"une suite chronologique, ce qui sera pratique par la suite.\n",
"\n",
......@@ -184,7 +184,7 @@
"outputs": [],
"source": [
"periods = sorted_data.index\n",
"for p1, p2 in zip(periods[:-1], periods[1:]):\n",
"for p1, p2 in zip(periods[:-1] , periods[1:]):\n",
" delta = p2.to_timestamp() - p1.end_time\n",
" if delta > pd.Timedelta('1s'):\n",
" print(p1, p2)"
......@@ -258,7 +258,7 @@
},
"outputs": [],
"source": [
"first_august_week = [pd.Period(pd.Timestamp(y, 8, 1), 'W')\n",
"first_august_week = [pd.Period(pd.Timestamp(y, 8, 1), 'W')\n",
" for y in range(1985,\n",
" sorted_data.index[-1].year)]"
]
......@@ -335,7 +335,7 @@
"metadata": {},
"outputs": [],
"source": [
"yearly_incidence.hist(xrot=20)"
"yearly_incidence.hist(xrot=20 )"
]
},
{
......@@ -364,7 +364,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.1"
"version": "3.6.4"
}
},
"nbformat": 4,
......
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