From 576dc1ca164b4c16a52eb2a49edf68c8332ce0e0 Mon Sep 17 00:00:00 2001 From: escuiller Date: Mon, 27 Apr 2020 15:56:25 +0200 Subject: [PATCH] =?UTF-8?q?visualisation=201=20:=20incidence=20=C3=A0=20la?= =?UTF-8?q?=20semaine?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module3/exo2/exercice_python_fr.org | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/module3/exo2/exercice_python_fr.org b/module3/exo2/exercice_python_fr.org index 5537eac..c0c7481 100644 --- a/module3/exo2/exercice_python_fr.org +++ b/module3/exo2/exercice_python_fr.org @@ -134,3 +134,24 @@ for date1, date2 in zip(dates[:-1], dates[1:]): Visiblement aucune ligne manquante. + +* Analyse des données + +Contrairement au mooc, je fais l'analyse entièrement avec python, +librairie pandas. + +** Visualisation au pas semaine + +#+begin_src python :results value :session :exports both +import pandas +data = pandas.DataFrame(converted_data, columns=("Date", "Incidence")) +fig = data.plot(x="Date", y="Incidence") +plt.savefig("incidence_hebdo_varicelle.png") +#+end_src + +#+RESULTS: + +[[file:"incidence_hebdo_varicelle.png"]] + +** Visualisation au pas année + -- 2.18.1