ajout de la fonction round

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