From fb249085167e0820956bf2385b11a353e1a88790 Mon Sep 17 00:00:00 2001 From: 2207ee6c4b0763c29ab8f98156e3343c <2207ee6c4b0763c29ab8f98156e3343c@app-learninglab.inria.fr> Date: Wed, 11 Aug 2021 14:16:55 +0000 Subject: [PATCH] =?UTF-8?q?ligne=20intuile=20enlev=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module3/exo3/exercice.ipynb | 99 +++++++++++++++++-------------------- 1 file changed, 45 insertions(+), 54 deletions(-) diff --git a/module3/exo3/exercice.ipynb b/module3/exo3/exercice.ipynb index 476bb93..ee2e0e3 100644 --- a/module3/exo3/exercice.ipynb +++ b/module3/exo3/exercice.ipynb @@ -25,7 +25,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ @@ -43,7 +43,7 @@ }, { "cell_type": "code", - "execution_count": 31, + "execution_count": 3, "metadata": {}, "outputs": [ { @@ -241,7 +241,7 @@ "[5 rows x 571 columns]" ] }, - "execution_count": 31, + "execution_count": 3, "metadata": {}, "output_type": "execute_result" } @@ -253,7 +253,7 @@ }, { "cell_type": "code", - "execution_count": 32, + "execution_count": 4, "metadata": {}, "outputs": [ { @@ -451,7 +451,7 @@ "[5 rows x 571 columns]" ] }, - "execution_count": 32, + "execution_count": 4, "metadata": {}, "output_type": "execute_result" } @@ -469,7 +469,7 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": 5, "metadata": {}, "outputs": [ { @@ -559,7 +559,7 @@ "[1 rows x 571 columns]" ] }, - "execution_count": 20, + "execution_count": 5, "metadata": {}, "output_type": "execute_result" } @@ -570,7 +570,7 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": 6, "metadata": {}, "outputs": [], "source": [ @@ -579,16 +579,7 @@ }, { "cell_type": "code", - "execution_count": 22, - "metadata": {}, - "outputs": [], - "source": [ - "data.at[\"Country/Region\",\"70\"] = \"Hong Kong\"" - ] - }, - { - "cell_type": "code", - "execution_count": 23, + "execution_count": 7, "metadata": {}, "outputs": [], "source": [ @@ -597,7 +588,7 @@ }, { "cell_type": "code", - "execution_count": 24, + "execution_count": 8, "metadata": {}, "outputs": [ { @@ -632,6 +623,7 @@ "
1 rows × 572 columns
\n", + "1 rows × 571 columns
\n", "" ], "text/plain": [ " Province/State Country/Region Lat Long 1/22/20 1/23/20 1/24/20 \\\n", - "70 Hong Kong Hong Kong 22.3 114.2 0.0 2.0 2.0 \n", + "70 Hong Kong Hong Kong 22.3 114.2 0 2 2 \n", "\n", - " 1/25/20 1/26/20 1/27/20 ... 8/2/21 8/3/21 8/4/21 8/5/21 \\\n", - "70 5.0 8.0 8.0 ... 11990.0 11994.0 11996.0 12002.0 \n", + " 1/25/20 1/26/20 1/27/20 ... 8/1/21 8/2/21 8/3/21 8/4/21 \\\n", + "70 5 8 8 ... 11987 11990 11994 11996 \n", "\n", - " 8/6/21 8/7/21 8/8/21 8/9/21 8/10/21 70 \n", - "70 12004.0 12011.0 12013.0 12015.0 12019.0 NaN \n", + " 8/5/21 8/6/21 8/7/21 8/8/21 8/9/21 8/10/21 \n", + "70 12002 12004 12011 12013 12015 12019 \n", "\n", - "[1 rows x 572 columns]" + "[1 rows x 571 columns]" ] }, - "execution_count": 24, + "execution_count": 8, "metadata": {}, "output_type": "execute_result" } @@ -705,7 +696,7 @@ }, { "cell_type": "code", - "execution_count": 25, + "execution_count": 9, "metadata": {}, "outputs": [], "source": [ @@ -715,7 +706,7 @@ }, { "cell_type": "code", - "execution_count": 26, + "execution_count": 10, "metadata": {}, "outputs": [], "source": [ @@ -729,7 +720,7 @@ }, { "cell_type": "code", - "execution_count": 27, + "execution_count": 11, "metadata": {}, "outputs": [], "source": [ @@ -745,7 +736,7 @@ }, { "cell_type": "code", - "execution_count": 28, + "execution_count": 12, "metadata": {}, "outputs": [], "source": [ @@ -757,16 +748,16 @@ }, { "cell_type": "code", - "execution_count": 29, + "execution_count": 13, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "