Analyse de l'incidence du syndrôme grippal avec une copie locale des données

parent c6c7b9cb
...@@ -2185,10 +2185,12 @@ ...@@ -2185,10 +2185,12 @@
} }
], ],
"source": [ "source": [
"# verifier si la différence temporelle est supérieure à 1 seconde\n",
"periods = sorted_data.index\n", "periods = sorted_data.index\n",
"for p1, p2 in zip(periods[:-1], periods[1:]):\n", "for p1, p2 in zip(periods[:-1], periods[1:]):\n",
" delta = p2.to_timestamp() - p1.end_time\n", " delta = p2.to_timestamp() - p1.end_time\n",
" if delta > pd.Timedelta('1s'):\n", " if delta > pd.Timedelta('1s'):\n",
"# afficher les paires de périodes consécutives qui ont une difference temporelle\n",
" print(p1, p2)" " print(p1, p2)"
] ]
}, },
...@@ -2201,7 +2203,7 @@ ...@@ -2201,7 +2203,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 10, "execution_count": 9,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
...@@ -2226,16 +2228,16 @@ ...@@ -2226,16 +2228,16 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 11, "execution_count": 10,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
"data": { "data": {
"text/plain": [ "text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7fdceab16860>" "<matplotlib.axes._subplots.AxesSubplot at 0x7fc9e29c0588>"
] ]
}, },
"execution_count": 11, "execution_count": 10,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
}, },
...@@ -2286,7 +2288,7 @@ ...@@ -2286,7 +2288,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 12, "execution_count": 11,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
...@@ -2306,7 +2308,7 @@ ...@@ -2306,7 +2308,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 13, "execution_count": 12,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
...@@ -2330,16 +2332,16 @@ ...@@ -2330,16 +2332,16 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 14, "execution_count": 13,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
"data": { "data": {
"text/plain": [ "text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7fdce897a208>" "<matplotlib.axes._subplots.AxesSubplot at 0x7fca186830f0>"
] ]
}, },
"execution_count": 14, "execution_count": 13,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
}, },
...@@ -2434,16 +2436,16 @@ ...@@ -2434,16 +2436,16 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 16, "execution_count": 14,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
"data": { "data": {
"text/plain": [ "text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7fdce8948dd8>" "<matplotlib.axes._subplots.AxesSubplot at 0x7fc9e0880940>"
] ]
}, },
"execution_count": 16, "execution_count": 14,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
}, },
......
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