From fa8f17ea87cd1cb5180e2cd2f597a9e07248761e Mon Sep 17 00:00:00 2001 From: 50eb3e12b022657b764f06afc7ab4a85 <50eb3e12b022657b764f06afc7ab4a85@app-learninglab.inria.fr> Date: Mon, 8 Feb 2021 13:14:14 +0000 Subject: [PATCH] =?UTF-8?q?tableau=20import=C3=A9=20--=20pause?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module2/exo4/exercice.ipynb | 116 ++++++++++++++++++++++++++++- module2/exo4/zonulin_test.csv | 89 ++++++++++++++++++++++ module2/exo4/zonulin_test_virg.csv | 89 ++++++++++++++++++++++ 3 files changed, 293 insertions(+), 1 deletion(-) create mode 100644 module2/exo4/zonulin_test.csv create mode 100644 module2/exo4/zonulin_test_virg.csv diff --git a/module2/exo4/exercice.ipynb b/module2/exo4/exercice.ipynb index 04e9cab..9636c16 100644 --- a/module2/exo4/exercice.ipynb +++ b/module2/exo4/exercice.ipynb @@ -2,11 +2,124 @@ "cells": [ { "cell_type": "markdown", - "metadata": {}, + "metadata": { + "hideCode": true, + "hidePrompt": true + }, "source": [ "# Notebook exercice 4 Module 2" ] }, + { + "cell_type": "markdown", + "metadata": { + "hideCode": true, + "hidePrompt": true + }, + "source": [ + "**Importer la base de données _zonulin_**" + ] + }, + { + "cell_type": "code", + "execution_count": 32, + "metadata": {}, + "outputs": [], + "source": [ + "import pandas as pd\n", + "import numpy as np\n", + "import matplotlib.pyplot as plt\n", + "import csv" + ] + }, + { + "cell_type": "code", + "execution_count": 56, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " echantillon visite zonulin_ng_per_ml\n", + "0 1 V1 1.552755\n", + "1 2 V1 0.427315\n", + "2 3 V1 2.370457\n", + "3 4 V1 0.365768\n", + "4 5 V1 2.933177\n", + "5 6 V1 1.798945\n", + "6 7 V1 0.444900\n", + "7 8 V1 3.742087\n", + "8 9 V1 0.128370\n", + "9 10 V1 -0.302462\n", + "10 11 V1 -0.601407\n", + "11 12 V1 2.097890\n", + "12 13 V1 2.871630\n", + "13 14 V1 2.713365\n", + "14 15 V1 1.412075\n", + "15 16 V1 0.524033\n", + "16 17 V1 -0.117819\n", + "17 18 V1 0.998828\n", + "18 19 V1 1.104338\n", + "19 20 V1 0.550410\n", + "20 21 V1 1.007620\n", + "21 22 V1 -1.181712\n", + "22 23 V1 0.894490\n", + "23 24 V1 0.361079\n", + "24 25 V1 0.853458\n", + "25 26 V1 0.232122\n", + "26 27 V1 1.064478\n", + "27 28 V1 -0.043376\n", + "28 29 V1 -0.143025\n", + "29 30 V1 -0.066823\n", + ".. ... ... ...\n", + "58 15 V3 0.594373\n", + "59 16 V3 -0.355217\n", + "60 17 V3 0.708675\n", + "61 18 V3 0.972450\n", + "62 19 V3 -0.320047\n", + "63 20 V3 0.093200\n", + "64 21 V3 1.702227\n", + "65 22 V3 -0.522274\n", + "66 23 V3 1.539273\n", + "67 24 V3 -0.031653\n", + "68 25 V3 -0.037515\n", + "69 26 V3 0.015240\n", + "70 27 V3 NaN\n", + "71 28 V3 -0.500586\n", + "72 29 V3 -0.600234\n", + "73 30 V3 0.097304\n", + "74 31 V3 -0.400938\n", + "75 32 V3 -0.377491\n", + "76 33 V3 -0.412661\n", + "77 34 V3 -0.365768\n", + "78 35 V3 0.091442\n", + "79 36 V3 -0.143025\n", + "80 37 V3 -0.166471\n", + "81 38 V3 0.284877\n", + "82 39 V3 0.237984\n", + "83 40 V3 0.179367\n", + "84 41 V3 0.923798\n", + "85 42 V3 1.263775\n", + "86 43 V3 0.185229\n", + "87 44 V3 0.179367\n", + "\n", + "[88 rows x 3 columns]\n" + ] + } + ], + "source": [ + "file = pd.read_csv('zonulin_test_virg.csv', ';')\n", + "print(file)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "**Trier zonulin selon la visite**" + ] + }, { "cell_type": "code", "execution_count": null, @@ -16,6 +129,7 @@ } ], "metadata": { + "hide_code_all_hidden": true, "kernelspec": { "display_name": "Python 3", "language": "python", diff --git a/module2/exo4/zonulin_test.csv b/module2/exo4/zonulin_test.csv new file mode 100644 index 0000000..a1b8087 --- /dev/null +++ b/module2/exo4/zonulin_test.csv @@ -0,0 +1,89 @@ +echantillon;visite;zonulin_ng_per_ml +1;V1;1,552754982 +2;V1;0,427315358 +3;V1;2,37045721 +4;V1;0,365767878 +5;V1;2,933177022 +6;V1;1,7989449 +7;V1;0,444900352 +8;V1;3,742086753 +9;V1;0,128370457 +10;V1;-0,302461899 +11;V1;-0,6014068 +12;V1;2,097889801 +13;V1;2,871629543 +14;V1;2,713364596 +15;V1;1,412075029 +16;V1;0,524032825 +17;V1;-0,117819461 +18;V1;0,998827667 +19;V1;1,104337632 +20;V1;0,550410317 +21;V1;1,007620164 +22;V1;-1,181711606 +23;V1;0,894490035 +24;V1;0,361078546 +25;V1;0,853458382 +26;V1;0,232121923 +27;V1;1,064478312 +28;V1;-0,043376319 +29;V1;-0,143024619 +30;V1;-0,066822978 +31;V1;0,49003517 +32;V1;0,284876905 +33;V1;-0,055099648 +34;V1;0,038686987 +35;V1;-0,395076202 +36;V1;-0,025791325 +37;V1;-0,125439625 +38;V1;0,548651817 +39;V1;0,501758499 +40;V1;0,501758499 +41;V1;0,27901524 +42;V1;-0,541617819 +43;V1;0,026963658 +44;V1;0,454865182 +1;V3;0,954865182 +2;V3;0,849355217 +3;V3;2,388042204 +4;V3;0,313012896 +5;V3;2,739742087 +6;V3;2,115474795 +7;V3;-0,170574443 +8;V3;3,381594373 +9;V3;1,016412661 +10;V3;-1,208089097 +11;V3;0,225087925 +12;V3;3,399179367 +13;V3;3,337631887 +14;V3;2,203399766 +15;V3;0,594372802 +16;V3;-0,355216882 +17;V3;0,708675264 +18;V3;0,972450176 +19;V3;-0,320046893 +20;V3;0,093200469 +21;V3;1,702227433 +22;V3;-0,522274326 +23;V3;1,539273154 +24;V3;-0,031652989 +25;V3;-0,037514654 +26;V3;0,015240328 +27;V3;n/a +28;V3;-0,500586166 +29;V3;-0,600234467 +30;V3;0,097303634 +31;V3;-0,400937866 +32;V3;-0,377491208 +33;V3;-0,412661196 +34;V3;-0,365767878 +35;V3;0,09144197 +36;V3;-0,143024619 +37;V3;-0,166471278 +38;V3;0,284876905 +39;V3;0,237983587 +40;V3;0,17936694 +41;V3;0,923798359 +42;V3;1,263774912 +43;V3;0,185228605 +44;V3;0,17936694 diff --git a/module2/exo4/zonulin_test_virg.csv b/module2/exo4/zonulin_test_virg.csv new file mode 100644 index 0000000..d74e253 --- /dev/null +++ b/module2/exo4/zonulin_test_virg.csv @@ -0,0 +1,89 @@ +echantillon;visite;zonulin_ng_per_ml +1;V1;1.552754982 +2;V1;0.427315358 +3;V1;2.37045721 +4;V1;0.365767878 +5;V1;2.933177022 +6;V1;1.7989449 +7;V1;0.444900352 +8;V1;3.742086753 +9;V1;0.128370457 +10;V1;-0.302461899 +11;V1;-0.6014068 +12;V1;2.097889801 +13;V1;2.871629543 +14;V1;2.713364596 +15;V1;1.412075029 +16;V1;0.524032825 +17;V1;-0.117819461 +18;V1;0.998827667 +19;V1;1.104337632 +20;V1;0.550410317 +21;V1;1.007620164 +22;V1;-1.181711606 +23;V1;0.894490035 +24;V1;0.361078546 +25;V1;0.853458382 +26;V1;0.232121923 +27;V1;1.064478312 +28;V1;-0.043376319 +29;V1;-0.143024619 +30;V1;-0.066822978 +31;V1;0.49003517 +32;V1;0.284876905 +33;V1;-0.055099648 +34;V1;0.038686987 +35;V1;-0.395076202 +36;V1;-0.025791325 +37;V1;-0.125439625 +38;V1;0.548651817 +39;V1;0.501758499 +40;V1;0.501758499 +41;V1;0.27901524 +42;V1;-0.541617819 +43;V1;0.026963658 +44;V1;0.454865182 +1;V3;0.954865182 +2;V3;0.849355217 +3;V3;2.388042204 +4;V3;0.313012896 +5;V3;2.739742087 +6;V3;2.115474795 +7;V3;-0.170574443 +8;V3;3.381594373 +9;V3;1.016412661 +10;V3;-1.208089097 +11;V3;0.225087925 +12;V3;3.399179367 +13;V3;3.337631887 +14;V3;2.203399766 +15;V3;0.594372802 +16;V3;-0.355216882 +17;V3;0.708675264 +18;V3;0.972450176 +19;V3;-0.320046893 +20;V3;0.093200469 +21;V3;1.702227433 +22;V3;-0.522274326 +23;V3;1.539273154 +24;V3;-0.031652989 +25;V3;-0.037514654 +26;V3;0.015240328 +27;V3;n/a +28;V3;-0.500586166 +29;V3;-0.600234467 +30;V3;0.097303634 +31;V3;-0.400937866 +32;V3;-0.377491208 +33;V3;-0.412661196 +34;V3;-0.365767878 +35;V3;0.09144197 +36;V3;-0.143024619 +37;V3;-0.166471278 +38;V3;0.284876905 +39;V3;0.237983587 +40;V3;0.17936694 +41;V3;0.923798359 +42;V3;1.263774912 +43;V3;0.185228605 +44;V3;0.17936694 -- 2.18.1