wip

parent b3ead60b
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 7, "execution_count": 13,
"metadata": { "metadata": {
"hideCode": false, "hideCode": false,
"hidePrompt": false "hidePrompt": false
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 8, "execution_count": 14,
"metadata": { "metadata": {
"hideCode": false, "hideCode": false,
"hidePrompt": false "hidePrompt": false
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
"4 1958-04-26 316.48" "4 1958-04-26 316.48"
] ]
}, },
"execution_count": 8, "execution_count": 14,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 9, "execution_count": 15,
"metadata": { "metadata": {
"hideCode": false, "hideCode": false,
"hidePrompt": false "hidePrompt": false
...@@ -188,7 +188,7 @@ ...@@ -188,7 +188,7 @@
"Index: []" "Index: []"
] ]
}, },
"execution_count": 9, "execution_count": 15,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
...@@ -204,7 +204,7 @@ ...@@ -204,7 +204,7 @@
"hidePrompt": false "hidePrompt": false
}, },
"source": [ "source": [
"Il ne manque aucune donnée.\n", "Il n'y a pas de date sans mesure.\n",
"\n", "\n",
"### Vérification des écarts entre les données\n", "### Vérification des écarts entre les données\n",
"On attend un écart de 7 jours entre chaque mesure." "On attend un écart de 7 jours entre chaque mesure."
...@@ -212,7 +212,7 @@ ...@@ -212,7 +212,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 10, "execution_count": 16,
"metadata": { "metadata": {
"hideCode": false, "hideCode": false,
"hidePrompt": false "hidePrompt": false
...@@ -276,7 +276,7 @@ ...@@ -276,7 +276,7 @@
"1958-04-12 1958-04-12 317.69" "1958-04-12 1958-04-12 317.69"
] ]
}, },
"execution_count": 10, "execution_count": 16,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
...@@ -289,7 +289,7 @@ ...@@ -289,7 +289,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 11, "execution_count": 17,
"metadata": { "metadata": {
"hideCode": false, "hideCode": false,
"hidePrompt": false "hidePrompt": false
...@@ -348,12 +348,14 @@ ...@@ -348,12 +348,14 @@
"hidePrompt": false "hidePrompt": false
}, },
"source": [ "source": [
"Il y avait de nombreuses données manquantes." "Il y avait de nombreuses données manquantes, la plupart de une à 2 mesures consécutives.\n",
"\n",
"### Analyse visuelle"
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 13, "execution_count": 18,
"metadata": { "metadata": {
"hideCode": false, "hideCode": false,
"hidePrompt": false "hidePrompt": false
...@@ -362,10 +364,10 @@ ...@@ -362,10 +364,10 @@
{ {
"data": { "data": {
"text/plain": [ "text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f898cea6d30>" "<matplotlib.axes._subplots.AxesSubplot at 0x7fbf140a1b38>"
] ]
}, },
"execution_count": 13, "execution_count": 18,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
}, },
...@@ -390,21 +392,21 @@ ...@@ -390,21 +392,21 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"On a un signal oscillant, mais toujours croissant." "On a un signal oscillant/pulsatil, mais toujours croissant."
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 17, "execution_count": 19,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
"data": { "data": {
"text/plain": [ "text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f898cd4d240>" "<matplotlib.axes._subplots.AxesSubplot at 0x7fbf13e3eba8>"
] ]
}, },
"execution_count": 17, "execution_count": 19,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
}, },
...@@ -427,16 +429,16 @@ ...@@ -427,16 +429,16 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 19, "execution_count": 20,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
"data": { "data": {
"text/plain": [ "text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f898cc18160>" "<matplotlib.axes._subplots.AxesSubplot at 0x7fbf13df3240>"
] ]
}, },
"execution_count": 19, "execution_count": 20,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
}, },
...@@ -465,7 +467,40 @@ ...@@ -465,7 +467,40 @@
"hidePrompt": false "hidePrompt": false
}, },
"source": [ "source": [
"La période du signal semble annuel, avec un pic vers le mois de juin et le plus bas vers octobre-novembre." "La période du signal semble annuel, avec un pic vers le mois de juin et le plus bas vers octobre-novembre.\n",
"\n",
"## Analyse\n",
"Pour se protéger du bruit, on va réaliser une moyenne glissante\n",
"### Analyse de la pulsation\n",
"Les systèmes oscillants peuvent être caractérisés par une fréquence de pulsation et une amplitude du système.\n",
"### Analyse globale : évolution de la concentration dans le temps"
]
},
{
"cell_type": "code",
"execution_count": 28,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1958-03-29 00:00:00\n",
"DatetimeIndex(['1958-03-30', '1958-04-06', '1958-04-13', '1958-04-20',\n",
" '1958-04-27', '1958-05-04', '1958-05-11', '1958-05-18',\n",
" '1958-05-25', '1958-06-01',\n",
" ...\n",
" '2022-11-20', '2022-11-27', '2022-12-04', '2022-12-11',\n",
" '2022-12-18', '2022-12-25', '2023-01-01', '2023-01-08',\n",
" '2023-01-15', '2023-01-22'],\n",
" dtype='datetime64[ns]', length=3383, freq='W-SUN')\n"
]
}
],
"source": [
"print( timestamp[0] )\n",
"x_lissé = pd.date_range(timestamp[0], timestamp[-1], freq='W')\n",
"print(x_lissé)"
] ]
} }
], ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment