Skip to content

Commit f3b070e

Browse files
committed
Created using Colaboratory
1 parent 4e7aab5 commit f3b070e

File tree

1 file changed

+45
-15
lines changed

1 file changed

+45
-15
lines changed

L_25_Max,Min,Mean,Median,Mode,Percentiles_.ipynb

+45-15
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"name": "L_25 Max,Min,Mean,Median,Mode,Percentiles .ipynb",
77
"provenance": [],
88
"collapsed_sections": [],
9-
"authorship_tag": "ABX9TyPezsQrcy0P3ot2tLwW6i2R",
9+
"authorship_tag": "ABX9TyP5ODo2mww5Jb+0po+Yl/b5",
1010
"include_colab_link": true
1111
},
1212
"kernelspec": {
@@ -50,7 +50,7 @@
5050
"id": "n5JvXqC3K2Up",
5151
"outputId": "c8124930-4fb7-41de-c5b3-096708e4095d"
5252
},
53-
"execution_count": 20,
53+
"execution_count": null,
5454
"outputs": [
5555
{
5656
"output_type": "display_data",
@@ -174,7 +174,7 @@
174174
"id": "Ptzn8PkUKEAu",
175175
"outputId": "f6f65ca9-b59a-4177-ed22-ebef6e12b06c"
176176
},
177-
"execution_count": 17,
177+
"execution_count": null,
178178
"outputs": [
179179
{
180180
"output_type": "display_data",
@@ -209,7 +209,7 @@
209209
{
210210
"cell_type": "markdown",
211211
"source": [
212-
"## Get the number of rows that have max and min values"
212+
"## Get the number of rows that have max, min or a specific value (Which)"
213213
],
214214
"metadata": {
215215
"id": "OH3BW7loKTDG"
@@ -221,17 +221,18 @@
221221
"df <- mtcars\n",
222222
"\n",
223223
"which.max(df$mpg)\n",
224-
"which.min(df$mpg)"
224+
"which.min(df$mpg)\n",
225+
"which(df$qsec == 20.00)"
225226
],
226227
"metadata": {
227228
"colab": {
228229
"base_uri": "https://localhost:8080/",
229-
"height": 52
230+
"height": 69
230231
},
231232
"id": "3C3Qe4zdKV6g",
232-
"outputId": "7f52d635-4df7-4412-9602-0e10dae6d738"
233+
"outputId": "29b41606-d2d7-4d93-f9ad-1ab1231c5602"
233234
},
234-
"execution_count": 18,
235+
"execution_count": 1,
235236
"outputs": [
236237
{
237238
"output_type": "display_data",
@@ -260,6 +261,20 @@
260261
]
261262
},
262263
"metadata": {}
264+
},
265+
{
266+
"output_type": "display_data",
267+
"data": {
268+
"text/html": [
269+
"8"
270+
],
271+
"text/markdown": "8",
272+
"text/latex": "8",
273+
"text/plain": [
274+
"[1] 8"
275+
]
276+
},
277+
"metadata": {}
263278
}
264279
]
265280
},
@@ -278,17 +293,18 @@
278293
"df <- mtcars\n",
279294
"\n",
280295
"rownames(df)[which.max(df$mpg)]\n",
281-
"rownames(df)[which.min(df$mpg)]"
296+
"rownames(df)[which.min(df$mpg)]\n",
297+
"rownames(df)[which(df$qsec == 20.00)]"
282298
],
283299
"metadata": {
284300
"colab": {
285301
"base_uri": "https://localhost:8080/",
286-
"height": 52
302+
"height": 69
287303
},
288304
"id": "i10-olKXKiA_",
289-
"outputId": "6b4fb964-71ab-4c9e-b477-deec9d83a774"
305+
"outputId": "7ef9ebfa-e0b3-43aa-9ab8-fd87d6755c8e"
290306
},
291-
"execution_count": 19,
307+
"execution_count": 2,
292308
"outputs": [
293309
{
294310
"output_type": "display_data",
@@ -317,6 +333,20 @@
317333
]
318334
},
319335
"metadata": {}
336+
},
337+
{
338+
"output_type": "display_data",
339+
"data": {
340+
"text/html": [
341+
"'Merc 240D'"
342+
],
343+
"text/markdown": "'Merc 240D'",
344+
"text/latex": "'Merc 240D'",
345+
"text/plain": [
346+
"[1] \"Merc 240D\""
347+
]
348+
},
349+
"metadata": {}
320350
}
321351
]
322352
},
@@ -355,7 +385,7 @@
355385
"id": "Wh9aq_SPMTmk",
356386
"outputId": "22956d1a-55ce-4d0a-e464-b18277257984"
357387
},
358-
"execution_count": 26,
388+
"execution_count": null,
359389
"outputs": [
360390
{
361391
"output_type": "display_data",
@@ -434,7 +464,7 @@
434464
"id": "UJ5gs_LNNVKT",
435465
"outputId": "a93e63a7-2e7d-4949-90c5-f7abb62fc532"
436466
},
437-
"execution_count": 27,
467+
"execution_count": null,
438468
"outputs": [
439469
{
440470
"output_type": "display_data",
@@ -481,7 +511,7 @@
481511
"id": "SYZp___KNnu7",
482512
"outputId": "c69e8b00-ca82-4c7e-804f-c99e997ed761"
483513
},
484-
"execution_count": 31,
514+
"execution_count": null,
485515
"outputs": [
486516
{
487517
"output_type": "display_data",

0 commit comments

Comments
 (0)