From 918ac23baefea4e32b8a81b470bc4deba42aa493 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bertrand=20N=C3=A9ron?= <bneron@pasteur.fr>
Date: Thu, 17 Oct 2024 14:03:12 +0200
Subject: [PATCH] reorganize notebooks

notebooks are now in 3 sub directories

Cours
Tp
Solutions
---
 .../{ => Cours}/interactivity_cours.ipynb     | Bin
 notebooks/{ => Cours}/jupyter_cours.ipynb     |   0
 notebooks/{ => Cours}/matplotlib_cours.ipynb  |   0
 notebooks/{ => Cours}/numpy_cours.ipynb       |   0
 notebooks/{ => Cours}/pandas_cours.ipynb      |   0
 .../{ => Cours}/pingouin_scipy_cours.ipynb    |   0
 .../{ => Cours}/scikit-learn_cours.ipynb      |   0
 notebooks/{ => Cours}/scipy_cours.ipynb       |   0
 notebooks/{ => Cours}/seaborn_cours.ipynb     |   0
 notebooks/{ => Cours}/statsmodels_cours.ipynb |   0
 .../interactivity_TP_solutions.ipynb          |   0
 .../matplotlib_TP_solutions.ipynb             |   0
 .../{ => Solutions}/numpy_TP_solutions.ipynb  |   0
 .../{ => Solutions}/pandas_TP_solution.ipynb  |   0
 .../pingouin_scipy_TP_solutions.ipynb         |   0
 .../scikit-learn_TP_solutions.ipynb           |   0
 .../{ => Solutions}/scipy_TP_solutions.ipynb  |   0
 .../seaborn_TP_solutions.ipynb                |   0
 .../seaborn_TP_solutions_happiness2016.ipynb  | 185 +++++++++++++++++-
 .../statsmodels_TP_solutions.ipynb            |   0
 notebooks/{ => TP}/interactivity_TP.ipynb     |   0
 notebooks/{ => TP}/jupyter_TP.ipynb           |   0
 notebooks/{ => TP}/matplotlib_TP.ipynb        |   0
 notebooks/{ => TP}/numpy_TP.ipynb             |   0
 notebooks/{ => TP}/pandas_TP.ipynb            |   0
 notebooks/{ => TP}/pingouin_scipy_TP.ipynb    |   0
 notebooks/{ => TP}/scikit-learn_TP.ipynb      |   0
 notebooks/{ => TP}/scipy_TP.ipynb             |   0
 notebooks/{ => TP}/seaborn_TP.ipynb           |   0
 notebooks/{ => TP}/statsmodels_TP.ipynb       |   0
 notebooks/img                                 |   1 -
 31 files changed, 176 insertions(+), 10 deletions(-)
 rename notebooks/{ => Cours}/interactivity_cours.ipynb (100%)
 rename notebooks/{ => Cours}/jupyter_cours.ipynb (100%)
 rename notebooks/{ => Cours}/matplotlib_cours.ipynb (100%)
 rename notebooks/{ => Cours}/numpy_cours.ipynb (100%)
 rename notebooks/{ => Cours}/pandas_cours.ipynb (100%)
 rename notebooks/{ => Cours}/pingouin_scipy_cours.ipynb (100%)
 rename notebooks/{ => Cours}/scikit-learn_cours.ipynb (100%)
 rename notebooks/{ => Cours}/scipy_cours.ipynb (100%)
 rename notebooks/{ => Cours}/seaborn_cours.ipynb (100%)
 rename notebooks/{ => Cours}/statsmodels_cours.ipynb (100%)
 rename notebooks/{ => Solutions}/interactivity_TP_solutions.ipynb (100%)
 rename notebooks/{ => Solutions}/matplotlib_TP_solutions.ipynb (100%)
 rename notebooks/{ => Solutions}/numpy_TP_solutions.ipynb (100%)
 rename notebooks/{ => Solutions}/pandas_TP_solution.ipynb (100%)
 rename notebooks/{ => Solutions}/pingouin_scipy_TP_solutions.ipynb (100%)
 rename notebooks/{ => Solutions}/scikit-learn_TP_solutions.ipynb (100%)
 rename notebooks/{ => Solutions}/scipy_TP_solutions.ipynb (100%)
 rename notebooks/{ => Solutions}/seaborn_TP_solutions.ipynb (100%)
 rename notebooks/{ => Solutions}/seaborn_TP_solutions_happiness2016.ipynb (73%)
 rename notebooks/{ => Solutions}/statsmodels_TP_solutions.ipynb (100%)
 rename notebooks/{ => TP}/interactivity_TP.ipynb (100%)
 rename notebooks/{ => TP}/jupyter_TP.ipynb (100%)
 rename notebooks/{ => TP}/matplotlib_TP.ipynb (100%)
 rename notebooks/{ => TP}/numpy_TP.ipynb (100%)
 rename notebooks/{ => TP}/pandas_TP.ipynb (100%)
 rename notebooks/{ => TP}/pingouin_scipy_TP.ipynb (100%)
 rename notebooks/{ => TP}/scikit-learn_TP.ipynb (100%)
 rename notebooks/{ => TP}/scipy_TP.ipynb (100%)
 rename notebooks/{ => TP}/seaborn_TP.ipynb (100%)
 rename notebooks/{ => TP}/statsmodels_TP.ipynb (100%)
 delete mode 120000 notebooks/img

diff --git a/notebooks/interactivity_cours.ipynb b/notebooks/Cours/interactivity_cours.ipynb
similarity index 100%
rename from notebooks/interactivity_cours.ipynb
rename to notebooks/Cours/interactivity_cours.ipynb
diff --git a/notebooks/jupyter_cours.ipynb b/notebooks/Cours/jupyter_cours.ipynb
similarity index 100%
rename from notebooks/jupyter_cours.ipynb
rename to notebooks/Cours/jupyter_cours.ipynb
diff --git a/notebooks/matplotlib_cours.ipynb b/notebooks/Cours/matplotlib_cours.ipynb
similarity index 100%
rename from notebooks/matplotlib_cours.ipynb
rename to notebooks/Cours/matplotlib_cours.ipynb
diff --git a/notebooks/numpy_cours.ipynb b/notebooks/Cours/numpy_cours.ipynb
similarity index 100%
rename from notebooks/numpy_cours.ipynb
rename to notebooks/Cours/numpy_cours.ipynb
diff --git a/notebooks/pandas_cours.ipynb b/notebooks/Cours/pandas_cours.ipynb
similarity index 100%
rename from notebooks/pandas_cours.ipynb
rename to notebooks/Cours/pandas_cours.ipynb
diff --git a/notebooks/pingouin_scipy_cours.ipynb b/notebooks/Cours/pingouin_scipy_cours.ipynb
similarity index 100%
rename from notebooks/pingouin_scipy_cours.ipynb
rename to notebooks/Cours/pingouin_scipy_cours.ipynb
diff --git a/notebooks/scikit-learn_cours.ipynb b/notebooks/Cours/scikit-learn_cours.ipynb
similarity index 100%
rename from notebooks/scikit-learn_cours.ipynb
rename to notebooks/Cours/scikit-learn_cours.ipynb
diff --git a/notebooks/scipy_cours.ipynb b/notebooks/Cours/scipy_cours.ipynb
similarity index 100%
rename from notebooks/scipy_cours.ipynb
rename to notebooks/Cours/scipy_cours.ipynb
diff --git a/notebooks/seaborn_cours.ipynb b/notebooks/Cours/seaborn_cours.ipynb
similarity index 100%
rename from notebooks/seaborn_cours.ipynb
rename to notebooks/Cours/seaborn_cours.ipynb
diff --git a/notebooks/statsmodels_cours.ipynb b/notebooks/Cours/statsmodels_cours.ipynb
similarity index 100%
rename from notebooks/statsmodels_cours.ipynb
rename to notebooks/Cours/statsmodels_cours.ipynb
diff --git a/notebooks/interactivity_TP_solutions.ipynb b/notebooks/Solutions/interactivity_TP_solutions.ipynb
similarity index 100%
rename from notebooks/interactivity_TP_solutions.ipynb
rename to notebooks/Solutions/interactivity_TP_solutions.ipynb
diff --git a/notebooks/matplotlib_TP_solutions.ipynb b/notebooks/Solutions/matplotlib_TP_solutions.ipynb
similarity index 100%
rename from notebooks/matplotlib_TP_solutions.ipynb
rename to notebooks/Solutions/matplotlib_TP_solutions.ipynb
diff --git a/notebooks/numpy_TP_solutions.ipynb b/notebooks/Solutions/numpy_TP_solutions.ipynb
similarity index 100%
rename from notebooks/numpy_TP_solutions.ipynb
rename to notebooks/Solutions/numpy_TP_solutions.ipynb
diff --git a/notebooks/pandas_TP_solution.ipynb b/notebooks/Solutions/pandas_TP_solution.ipynb
similarity index 100%
rename from notebooks/pandas_TP_solution.ipynb
rename to notebooks/Solutions/pandas_TP_solution.ipynb
diff --git a/notebooks/pingouin_scipy_TP_solutions.ipynb b/notebooks/Solutions/pingouin_scipy_TP_solutions.ipynb
similarity index 100%
rename from notebooks/pingouin_scipy_TP_solutions.ipynb
rename to notebooks/Solutions/pingouin_scipy_TP_solutions.ipynb
diff --git a/notebooks/scikit-learn_TP_solutions.ipynb b/notebooks/Solutions/scikit-learn_TP_solutions.ipynb
similarity index 100%
rename from notebooks/scikit-learn_TP_solutions.ipynb
rename to notebooks/Solutions/scikit-learn_TP_solutions.ipynb
diff --git a/notebooks/scipy_TP_solutions.ipynb b/notebooks/Solutions/scipy_TP_solutions.ipynb
similarity index 100%
rename from notebooks/scipy_TP_solutions.ipynb
rename to notebooks/Solutions/scipy_TP_solutions.ipynb
diff --git a/notebooks/seaborn_TP_solutions.ipynb b/notebooks/Solutions/seaborn_TP_solutions.ipynb
similarity index 100%
rename from notebooks/seaborn_TP_solutions.ipynb
rename to notebooks/Solutions/seaborn_TP_solutions.ipynb
diff --git a/notebooks/seaborn_TP_solutions_happiness2016.ipynb b/notebooks/Solutions/seaborn_TP_solutions_happiness2016.ipynb
similarity index 73%
rename from notebooks/seaborn_TP_solutions_happiness2016.ipynb
rename to notebooks/Solutions/seaborn_TP_solutions_happiness2016.ipynb
index 5578273..d96cdf7 100644
--- a/notebooks/seaborn_TP_solutions_happiness2016.ipynb
+++ b/notebooks/Solutions/seaborn_TP_solutions_happiness2016.ipynb
@@ -8,7 +8,7 @@
     "# <center><b>Hands-on</b></center>\n",
     "\n",
     "<div style=\"text-align:center\">\n",
-    "    <img src=\"images/seaborn.png\" width=\"600px\">\n",
+    "    <img src=\"../images/seaborn.png\" width=\"600px\">\n",
     "    <div>\n",
     "       Bertrand Néron, François Laurent, Etienne Kornobis, Vincent Guillemot\n",
     "       <br />\n",
@@ -39,7 +39,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": null,
+   "execution_count": 2,
    "id": "minor-doctrine",
    "metadata": {},
    "outputs": [],
@@ -50,30 +50,197 @@
   },
   {
    "cell_type": "code",
-   "execution_count": null,
+   "execution_count": 3,
    "id": "skilled-daniel",
    "metadata": {},
    "outputs": [],
    "source": [
-    "ha_df = pd.read_csv(\"data/happiness_2016.csv\")"
+    "ha_df = pd.read_csv(\"../data/happiness_2016.csv\")"
    ]
   },
   {
    "cell_type": "code",
-   "execution_count": null,
+   "execution_count": 4,
    "id": "f8729a5b-314d-42fc-b130-783ca5e2076a",
    "metadata": {},
-   "outputs": [],
+   "outputs": [
+    {
+     "data": {
+      "text/plain": [
+       "(157, 13)"
+      ]
+     },
+     "execution_count": 4,
+     "metadata": {},
+     "output_type": "execute_result"
+    }
+   ],
    "source": [
     "ha_df.shape"
    ]
   },
   {
    "cell_type": "code",
-   "execution_count": null,
+   "execution_count": 5,
    "id": "brutal-manufacturer",
    "metadata": {},
-   "outputs": [],
+   "outputs": [
+    {
+     "data": {
+      "text/html": [
+       "<div>\n",
+       "<style scoped>\n",
+       "    .dataframe tbody tr th:only-of-type {\n",
+       "        vertical-align: middle;\n",
+       "    }\n",
+       "\n",
+       "    .dataframe tbody tr th {\n",
+       "        vertical-align: top;\n",
+       "    }\n",
+       "\n",
+       "    .dataframe thead th {\n",
+       "        text-align: right;\n",
+       "    }\n",
+       "</style>\n",
+       "<table border=\"1\" class=\"dataframe\">\n",
+       "  <thead>\n",
+       "    <tr style=\"text-align: right;\">\n",
+       "      <th></th>\n",
+       "      <th>Country</th>\n",
+       "      <th>Region</th>\n",
+       "      <th>Happiness Rank</th>\n",
+       "      <th>Happiness Score</th>\n",
+       "      <th>Lower Confidence Interval</th>\n",
+       "      <th>Upper Confidence Interval</th>\n",
+       "      <th>Economy (GDP per Capita)</th>\n",
+       "      <th>Family</th>\n",
+       "      <th>Health (Life Expectancy)</th>\n",
+       "      <th>Freedom</th>\n",
+       "      <th>Trust (Government Corruption)</th>\n",
+       "      <th>Generosity</th>\n",
+       "      <th>Dystopia Residual</th>\n",
+       "    </tr>\n",
+       "  </thead>\n",
+       "  <tbody>\n",
+       "    <tr>\n",
+       "      <th>0</th>\n",
+       "      <td>Denmark</td>\n",
+       "      <td>Western Europe</td>\n",
+       "      <td>1</td>\n",
+       "      <td>7.526</td>\n",
+       "      <td>7.460</td>\n",
+       "      <td>7.592</td>\n",
+       "      <td>1.44178</td>\n",
+       "      <td>1.16374</td>\n",
+       "      <td>0.79504</td>\n",
+       "      <td>0.57941</td>\n",
+       "      <td>0.44453</td>\n",
+       "      <td>0.36171</td>\n",
+       "      <td>2.73939</td>\n",
+       "    </tr>\n",
+       "    <tr>\n",
+       "      <th>1</th>\n",
+       "      <td>Switzerland</td>\n",
+       "      <td>Western Europe</td>\n",
+       "      <td>2</td>\n",
+       "      <td>7.509</td>\n",
+       "      <td>7.428</td>\n",
+       "      <td>7.590</td>\n",
+       "      <td>1.52733</td>\n",
+       "      <td>1.14524</td>\n",
+       "      <td>0.86303</td>\n",
+       "      <td>0.58557</td>\n",
+       "      <td>0.41203</td>\n",
+       "      <td>0.28083</td>\n",
+       "      <td>2.69463</td>\n",
+       "    </tr>\n",
+       "    <tr>\n",
+       "      <th>2</th>\n",
+       "      <td>Iceland</td>\n",
+       "      <td>Western Europe</td>\n",
+       "      <td>3</td>\n",
+       "      <td>7.501</td>\n",
+       "      <td>7.333</td>\n",
+       "      <td>7.669</td>\n",
+       "      <td>1.42666</td>\n",
+       "      <td>1.18326</td>\n",
+       "      <td>0.86733</td>\n",
+       "      <td>0.56624</td>\n",
+       "      <td>0.14975</td>\n",
+       "      <td>0.47678</td>\n",
+       "      <td>2.83137</td>\n",
+       "    </tr>\n",
+       "    <tr>\n",
+       "      <th>3</th>\n",
+       "      <td>Norway</td>\n",
+       "      <td>Western Europe</td>\n",
+       "      <td>4</td>\n",
+       "      <td>7.498</td>\n",
+       "      <td>7.421</td>\n",
+       "      <td>7.575</td>\n",
+       "      <td>1.57744</td>\n",
+       "      <td>1.12690</td>\n",
+       "      <td>0.79579</td>\n",
+       "      <td>0.59609</td>\n",
+       "      <td>0.35776</td>\n",
+       "      <td>0.37895</td>\n",
+       "      <td>2.66465</td>\n",
+       "    </tr>\n",
+       "    <tr>\n",
+       "      <th>4</th>\n",
+       "      <td>Finland</td>\n",
+       "      <td>Western Europe</td>\n",
+       "      <td>5</td>\n",
+       "      <td>7.413</td>\n",
+       "      <td>7.351</td>\n",
+       "      <td>7.475</td>\n",
+       "      <td>1.40598</td>\n",
+       "      <td>1.13464</td>\n",
+       "      <td>0.81091</td>\n",
+       "      <td>0.57104</td>\n",
+       "      <td>0.41004</td>\n",
+       "      <td>0.25492</td>\n",
+       "      <td>2.82596</td>\n",
+       "    </tr>\n",
+       "  </tbody>\n",
+       "</table>\n",
+       "</div>"
+      ],
+      "text/plain": [
+       "       Country          Region  Happiness Rank  Happiness Score  \\\n",
+       "0      Denmark  Western Europe               1            7.526   \n",
+       "1  Switzerland  Western Europe               2            7.509   \n",
+       "2      Iceland  Western Europe               3            7.501   \n",
+       "3       Norway  Western Europe               4            7.498   \n",
+       "4      Finland  Western Europe               5            7.413   \n",
+       "\n",
+       "   Lower Confidence Interval  Upper Confidence Interval  \\\n",
+       "0                      7.460                      7.592   \n",
+       "1                      7.428                      7.590   \n",
+       "2                      7.333                      7.669   \n",
+       "3                      7.421                      7.575   \n",
+       "4                      7.351                      7.475   \n",
+       "\n",
+       "   Economy (GDP per Capita)   Family  Health (Life Expectancy)  Freedom  \\\n",
+       "0                   1.44178  1.16374                   0.79504  0.57941   \n",
+       "1                   1.52733  1.14524                   0.86303  0.58557   \n",
+       "2                   1.42666  1.18326                   0.86733  0.56624   \n",
+       "3                   1.57744  1.12690                   0.79579  0.59609   \n",
+       "4                   1.40598  1.13464                   0.81091  0.57104   \n",
+       "\n",
+       "   Trust (Government Corruption)  Generosity  Dystopia Residual  \n",
+       "0                        0.44453     0.36171            2.73939  \n",
+       "1                        0.41203     0.28083            2.69463  \n",
+       "2                        0.14975     0.47678            2.83137  \n",
+       "3                        0.35776     0.37895            2.66465  \n",
+       "4                        0.41004     0.25492            2.82596  "
+      ]
+     },
+     "execution_count": 5,
+     "metadata": {},
+     "output_type": "execute_result"
+    }
+   ],
    "source": [
     "ha_df.head()"
    ]
@@ -447,7 +614,7 @@
    "id": "4121ff3d-6814-493e-a505-357ad81b0d28",
    "metadata": {},
    "source": [
-    "<img src=\"./images/multiple_figure.png\" width=\"50%\" />"
+    "<img src=\"../images/multiple_figure.png\" width=\"50%\" />"
    ]
   },
   {
diff --git a/notebooks/statsmodels_TP_solutions.ipynb b/notebooks/Solutions/statsmodels_TP_solutions.ipynb
similarity index 100%
rename from notebooks/statsmodels_TP_solutions.ipynb
rename to notebooks/Solutions/statsmodels_TP_solutions.ipynb
diff --git a/notebooks/interactivity_TP.ipynb b/notebooks/TP/interactivity_TP.ipynb
similarity index 100%
rename from notebooks/interactivity_TP.ipynb
rename to notebooks/TP/interactivity_TP.ipynb
diff --git a/notebooks/jupyter_TP.ipynb b/notebooks/TP/jupyter_TP.ipynb
similarity index 100%
rename from notebooks/jupyter_TP.ipynb
rename to notebooks/TP/jupyter_TP.ipynb
diff --git a/notebooks/matplotlib_TP.ipynb b/notebooks/TP/matplotlib_TP.ipynb
similarity index 100%
rename from notebooks/matplotlib_TP.ipynb
rename to notebooks/TP/matplotlib_TP.ipynb
diff --git a/notebooks/numpy_TP.ipynb b/notebooks/TP/numpy_TP.ipynb
similarity index 100%
rename from notebooks/numpy_TP.ipynb
rename to notebooks/TP/numpy_TP.ipynb
diff --git a/notebooks/pandas_TP.ipynb b/notebooks/TP/pandas_TP.ipynb
similarity index 100%
rename from notebooks/pandas_TP.ipynb
rename to notebooks/TP/pandas_TP.ipynb
diff --git a/notebooks/pingouin_scipy_TP.ipynb b/notebooks/TP/pingouin_scipy_TP.ipynb
similarity index 100%
rename from notebooks/pingouin_scipy_TP.ipynb
rename to notebooks/TP/pingouin_scipy_TP.ipynb
diff --git a/notebooks/scikit-learn_TP.ipynb b/notebooks/TP/scikit-learn_TP.ipynb
similarity index 100%
rename from notebooks/scikit-learn_TP.ipynb
rename to notebooks/TP/scikit-learn_TP.ipynb
diff --git a/notebooks/scipy_TP.ipynb b/notebooks/TP/scipy_TP.ipynb
similarity index 100%
rename from notebooks/scipy_TP.ipynb
rename to notebooks/TP/scipy_TP.ipynb
diff --git a/notebooks/seaborn_TP.ipynb b/notebooks/TP/seaborn_TP.ipynb
similarity index 100%
rename from notebooks/seaborn_TP.ipynb
rename to notebooks/TP/seaborn_TP.ipynb
diff --git a/notebooks/statsmodels_TP.ipynb b/notebooks/TP/statsmodels_TP.ipynb
similarity index 100%
rename from notebooks/statsmodels_TP.ipynb
rename to notebooks/TP/statsmodels_TP.ipynb
diff --git a/notebooks/img b/notebooks/img
deleted file mode 120000
index 5e798fa..0000000
--- a/notebooks/img
+++ /dev/null
@@ -1 +0,0 @@
-images
\ No newline at end of file
-- 
GitLab