From a1f839826ca6458ccaace7f9b98cec327aadfaf6 Mon Sep 17 00:00:00 2001 From: cb1e5ba91280d02583d0604166e71c1c Date: Sat, 4 Apr 2020 11:01:01 +0000 Subject: [PATCH] no commit message --- module3/exo3/exercice.ipynb | 38 ++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/module3/exo3/exercice.ipynb b/module3/exo3/exercice.ipynb index c52949e..8ee2354 100644 --- a/module3/exo3/exercice.ipynb +++ b/module3/exo3/exercice.ipynb @@ -9,7 +9,7 @@ }, { "cell_type": "code", - "execution_count": 122, + "execution_count": 218, "metadata": {}, "outputs": [], "source": [ @@ -34,7 +34,7 @@ }, { "cell_type": "code", - "execution_count": 124, + "execution_count": 219, "metadata": {}, "outputs": [ { @@ -156,7 +156,7 @@ "755 -99.99 -99.99 -99.99 " ] }, - "execution_count": 124, + "execution_count": 219, "metadata": {}, "output_type": "execute_result" } @@ -188,7 +188,7 @@ }, { "cell_type": "code", - "execution_count": 125, + "execution_count": 220, "metadata": {}, "outputs": [], "source": [ @@ -199,7 +199,7 @@ }, { "cell_type": "code", - "execution_count": 126, + "execution_count": 221, "metadata": {}, "outputs": [ { @@ -314,7 +314,7 @@ "4 1958 5 21320 1958.3699 317.51 314.71 317.86 315.06 317.51 314.71" ] }, - "execution_count": 126, + "execution_count": 221, "metadata": {}, "output_type": "execute_result" } @@ -332,7 +332,31 @@ }, { "cell_type": "code", - "execution_count": 127, + "execution_count": 224, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "Int64Index([744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755], dtype='int64')" + ] + }, + "execution_count": 224, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "date = datetime.date.today()\n", + "date\n", + "\n", + "d = data[data.Yr == date.year && data.Mn == date.year].index\n", + "d" + ] + }, + { + "cell_type": "code", + "execution_count": 216, "metadata": {}, "outputs": [], "source": [ -- 2.18.1