ajout de la fonction round

parent c1eb94c4
...@@ -67,23 +67,23 @@ ...@@ -67,23 +67,23 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 7, "execution_count": 12,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
"data": { "data": {
"text/plain": [ "text/plain": [
"4.334094455301447" "4.33"
] ]
}, },
"execution_count": 7, "execution_count": 12,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
], ],
"source": [ "source": [
"std = np.std(data, ddof=1)\n", "std = np.std(data, ddof=1)\n",
"std" "round(std, 2)"
] ]
}, },
{ {
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 8, "execution_count": 11,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
...@@ -104,14 +104,14 @@ ...@@ -104,14 +104,14 @@
"2.8" "2.8"
] ]
}, },
"execution_count": 8, "execution_count": 11,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
], ],
"source": [ "source": [
"min = np.min(data)\n", "min = np.min(data)\n",
"min" "round(min, 2)"
] ]
}, },
{ {
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 9, "execution_count": 13,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
...@@ -132,14 +132,14 @@ ...@@ -132,14 +132,14 @@
"23.4" "23.4"
] ]
}, },
"execution_count": 9, "execution_count": 13,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
], ],
"source": [ "source": [
"max = np.max(data)\n", "max = np.max(data)\n",
"max" "round(max, 2)"
] ]
}, },
{ {
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 10, "execution_count": 14,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
...@@ -160,14 +160,14 @@ ...@@ -160,14 +160,14 @@
"14.5" "14.5"
] ]
}, },
"execution_count": 10, "execution_count": 14,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
], ],
"source": [ "source": [
"median = np.median(data)\n", "median = np.median(data)\n",
"median" "round(median, 2)"
] ]
}, },
{ {
......
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