1 00:00:05,800 --> 00:00:06,630 Hey everyone. 2 00:00:06,950 --> 00:00:12,520 So in the last review we are also done with the accessing of elements now in this video we are going 3 00:00:12,520 --> 00:00:13,070 to do. 4 00:00:13,060 --> 00:00:18,250 Conditional selection that is something like what if you want to access the elements that are greater 5 00:00:18,250 --> 00:00:22,900 than do here or because it is three greater than three in this table. 6 00:00:23,380 --> 00:00:29,890 So we will do something like this the F greater than three you will get a table of boolean values in 7 00:00:29,890 --> 00:00:35,830 which those values are who are greater than three not only equal just greater than three like for here 8 00:00:36,390 --> 00:00:40,300 will get through like this be all have greater than three. 9 00:00:40,300 --> 00:00:46,450 So all here are true and this is what is known as condition selection. 10 00:00:46,450 --> 00:00:51,760 And one more thing What if you want to have the values that are greater than three then just pass this 11 00:00:51,760 --> 00:00:58,840 condition like the index to the if you will get all the values that are greater than three here in this 12 00:00:59,260 --> 00:00:59,990 table. 13 00:01:00,160 --> 00:01:04,010 Informal floats and all the other values are known. 14 00:01:04,090 --> 00:01:08,320 That is for none after that. 15 00:01:08,830 --> 00:01:11,220 This is all about the condition selection. 16 00:01:11,320 --> 00:01:17,620 Just a few basic and little concepts like what if you want to have the elements in any particular column 17 00:01:17,650 --> 00:01:19,580 that are greater than three. 18 00:01:19,690 --> 00:01:26,580 So you need to just pass that particular in column to that death. 19 00:01:26,640 --> 00:01:33,630 Now here you will not get the elements like 5 9 7 when you run that one you will get a table something 20 00:01:33,630 --> 00:01:35,150 like this one. 21 00:01:35,640 --> 00:01:42,870 This will show all the rows whose values for that particular column satisfy the condition like here. 22 00:01:42,870 --> 00:01:46,820 The B row this has fine that is greater than three. 23 00:01:46,830 --> 00:01:49,160 So here we have beetle not a. 24 00:01:49,300 --> 00:01:52,630 Then we have C 9 that is greater than three then three. 25 00:01:52,640 --> 00:01:59,370 It it's not greater than three so we do not have this one then E then Haber here we have this one if 26 00:01:59,370 --> 00:02:07,380 you want to have any particular column like I want to have W and X then you just need to do something 27 00:02:07,380 --> 00:02:14,940 like pass here on the set of these brackets inside backwards you will write something like I want to 28 00:02:14,940 --> 00:02:23,610 have W and X in capital then you will get only this one. 29 00:02:24,060 --> 00:02:32,550 So this is how you can get any particular part of the table you want to if you remove this one and these 30 00:02:32,550 --> 00:02:39,040 outside you will only get w the values we are talking about that is 5 9 and 7. 31 00:02:39,930 --> 00:02:46,290 So that's how you can have any particular value in any particular table if you want we'll do this one 32 00:02:46,290 --> 00:02:54,800 like greater than eight sorry this eight you will get only nine. 33 00:02:54,940 --> 00:03:02,200 So this is all about the condition of selection and I hope you understand this one also here. 34 00:03:02,320 --> 00:03:09,100 Make sure that by passing more than two columns or 1 2 X is more than two columns pass double brackets 35 00:03:09,220 --> 00:03:10,520 instead of single vote. 36 00:03:11,230 --> 00:03:13,310 So we are done with this one. 37 00:03:13,340 --> 00:03:13,890 No. 38 00:03:14,090 --> 00:03:20,380 A little more basic concept that is what if you have different conditions or we can say that more than 39 00:03:20,380 --> 00:03:23,250 one conditions then how we can do them. 40 00:03:23,500 --> 00:03:29,510 So far more than one conditions in operators also maybe you remembered we have done something like and 41 00:03:29,510 --> 00:03:33,980 an order and this one and this one. 42 00:03:34,510 --> 00:03:44,830 So we will use these two in case of multiple conditions like something if I want to have in w that dot 43 00:03:46,700 --> 00:03:49,390 like greater than three. 44 00:03:49,700 --> 00:03:51,980 That is we take greater than three. 45 00:03:52,430 --> 00:04:02,720 And if you want to have something like the values that are greater than two in Z then we will do something 46 00:04:02,720 --> 00:04:14,240 like If you do this thing like and then here you will bus the F then he Z greater than two and you will 47 00:04:14,240 --> 00:04:17,480 pass this one completely to the. 48 00:04:19,070 --> 00:04:24,380 They have to get the values only instead of two unfolds. 49 00:04:24,380 --> 00:04:25,670 So here you will get at it. 50 00:04:26,720 --> 00:04:33,470 And the reason for that added is not the any syntax because this syntax is completely fine. 51 00:04:34,010 --> 00:04:40,390 But the thing here is you cannot use and or here. 52 00:04:40,820 --> 00:04:49,850 One more thing make these in parentheses or that there will be a little more differentiated. 53 00:04:49,850 --> 00:04:55,550 So the thing here is you cannot use and and order here you need to use this for. 54 00:04:55,590 --> 00:05:02,110 And hey you will get this one b those who are greater than t in W so greater than two in the blood. 55 00:05:02,110 --> 00:05:05,830 Five nine tenths heaven and greater than two in Z. 56 00:05:05,870 --> 00:05:13,430 So out of these three now because other two are eliminated already so out of 8 2 and 0 which is greater 57 00:05:13,430 --> 00:05:15,750 than 2 that is 8. 58 00:05:15,770 --> 00:05:23,780 So here we get B only if you do something like greater than zero in the blue or the values are greater 59 00:05:23,780 --> 00:05:32,810 than zero and instead just the values that are greater than three and you do this one you will get all 60 00:05:32,810 --> 00:05:37,430 the values in the blue because every value is greater than zero. 61 00:05:37,550 --> 00:05:43,290 And in Z only the values that are greater than three that is for 8 and 6 foot 8 and 6. 62 00:05:43,400 --> 00:05:51,200 So that's all you can do that one if you want to use all here you will get this one either this condition 63 00:05:51,200 --> 00:05:54,520 is true or this condition is true all the things will happen. 64 00:05:54,710 --> 00:05:57,470 So that's why we have the complete data. 65 00:05:57,650 --> 00:06:04,760 If you do hear something like in the blog greater then like 9 because nothing is greater than 9 in there 66 00:06:05,360 --> 00:06:08,150 and in Z you make that greater than 3. 67 00:06:08,280 --> 00:06:14,150 You run that you will get all the values in Z that are created then three nickels why is not satisfying 68 00:06:14,150 --> 00:06:14,540 then. 69 00:06:14,780 --> 00:06:15,780 But we are using all. 70 00:06:15,860 --> 00:06:22,580 So if only one can satisfy we will get output but if you use something like nine here you will get an 71 00:06:22,580 --> 00:06:23,840 empty list. 72 00:06:25,550 --> 00:06:30,500 So there is all about the conditional selection and I hope you got the idea that what we have done here 73 00:06:30,800 --> 00:06:35,570 and we cannot perform that thing like this one. 74 00:06:35,570 --> 00:06:41,840 So we have done this with a numerical one so thanks for watching and we will continue in the next video.