Hey everyone.
So in the last review we are also done with the accessing of elements now in this video we are going
to do.
Conditional selection that is something like what if you want to access the elements that are greater
than do here or because it is three greater than three in this table.
So we will do something like this the F greater than three you will get a table of boolean values in
which those values are who are greater than three not only equal just greater than three like for here
will get through like this be all have greater than three.
So all here are true and this is what is known as condition selection.
And one more thing What if you want to have the values that are greater than three then just pass this
condition like the index to the if you will get all the values that are greater than three here in this
table.
Informal floats and all the other values are known.
That is for none after that.
This is all about the condition selection.
Just a few basic and little concepts like what if you want to have the elements in any particular column
that are greater than three.
So you need to just pass that particular in column to that death.
Now here you will not get the elements like 5 9 7 when you run that one you will get a table something
like this one.
This will show all the rows whose values for that particular column satisfy the condition like here.
The B row this has fine that is greater than three.
So here we have beetle not a.
Then we have C 9 that is greater than three then three.
It it's not greater than three so we do not have this one then E then Haber here we have this one if
you want to have any particular column like I want to have W and X then you just need to do something
like pass here on the set of these brackets inside backwards you will write something like I want to
have W and X in capital then you will get only this one.
So this is how you can get any particular part of the table you want to if you remove this one and these
outside you will only get w the values we are talking about that is 5 9 and 7.
So that's how you can have any particular value in any particular table if you want we'll do this one
like greater than eight sorry this eight you will get only nine.
So this is all about the condition of selection and I hope you understand this one also here.
Make sure that by passing more than two columns or 1 2 X is more than two columns pass double brackets
instead of single vote.
So we are done with this one.
No.
A little more basic concept that is what if you have different conditions or we can say that more than
one conditions then how we can do them.
So far more than one conditions in operators also maybe you remembered we have done something like and
an order and this one and this one.
So we will use these two in case of multiple conditions like something if I want to have in w that dot
like greater than three.
That is we take greater than three.
And if you want to have something like the values that are greater than two in Z then we will do something
like If you do this thing like and then here you will bus the F then he Z greater than two and you will
pass this one completely to the.
They have to get the values only instead of two unfolds.
So here you will get at it.
And the reason for that added is not the any syntax because this syntax is completely fine.
But the thing here is you cannot use and or here.
One more thing make these in parentheses or that there will be a little more differentiated.
So the thing here is you cannot use and and order here you need to use this for.
And hey you will get this one b those who are greater than t in W so greater than two in the blood.
Five nine tenths heaven and greater than two in Z.
So out of these three now because other two are eliminated already so out of 8 2 and 0 which is greater
than 2 that is 8.
So here we get B only if you do something like greater than zero in the blue or the values are greater
than zero and instead just the values that are greater than three and you do this one you will get all
the values in the blue because every value is greater than zero.
And in Z only the values that are greater than three that is for 8 and 6 foot 8 and 6.
So that's all you can do that one if you want to use all here you will get this one either this condition
is true or this condition is true all the things will happen.
So that's why we have the complete data.
If you do hear something like in the blog greater then like 9 because nothing is greater than 9 in there
and in Z you make that greater than 3.
You run that you will get all the values in Z that are created then three nickels why is not satisfying
then.
But we are using all.
So if only one can satisfy we will get output but if you use something like nine here you will get an
empty list.
So there is all about the conditional selection and I hope you got the idea that what we have done here
and we cannot perform that thing like this one.
So we have done this with a numerical one so thanks for watching and we will continue in the next video.