Here.
Even so in this video we are going to finish a program that is the conditions when the columns are 2
and columns are 3.
So let's begin.
So first of all we need to do with the two columns.
Then we need to take two inputs from the user.
So let we have X and we have Y.
So these are the two inputs from the user.
And we also need to add up and statement showing that and the two columns.
So this one something like enter and the columns you warn to block it.
And then the same syntax by selecting from data frame had Labor you'll note X will be like input and
they we have first column then viable it'll be like input and then they will have second column.
They will go with that one after that.
Same we have the seven conditions just like the previous one that is bloat equal to one.
Second one is the if deplored.
Equal to equal to two.
And let me organize them accordingly.
After that we had if flawed equal to equal to three then fourth they go with full.
Now five if bloat equal to five this time they are not going to use six and seven in one because they
are different conditions.
No we are going to have output at both the conditions.
After that we have this one seven.
In last we have an S condition.
So these are the only possible conditions we need to work here.
Make all these into NS so Elif leave.
There we go with this one.
This one now let me begin with the logic.
First of all when the plot equal to one then on one we have this one that is the scatter.
And if you remember how we can tell different plots is if I have this one here I need to pass there
a list of variables like first column then I have here a second column shift written David go with two.
So this is what we need to do in this particular situation.
So for that just copy this one.
Come on C and based in this case command we chase these in X go No way.
So this is a scatter plot in that particular situation.
So did the line plot and then we have of us get a plot.
Let me go this with this one and change these in to X
and Y I also just check this one so that you would not get any added after your code is complete.
So I have copied that part shift on David over that one I should applaud with two columns.
First one is to start load second one is that light blue.
After that we have the third one is of a bar bloat.
Then in that case let me just copy this one and paste it in every of these commands see this complete
command we have and we command we command we and command we then we go.
Now in case of this one that is this third one bar.
We had this one and I think I of me I have made a mistake you lack one Beckett in that particular case.
And after that one more record in this case
admitted blessed is
make sure there is no less and more brackets in particular situations.
Now let me check the bar code.
Come on.
See this one board bloat and there we had this one colonel against a working to restart the again.
Wait for this one restarting and David or maybe let me try to run this one.
No
so David O'Connor ready.
This from running fine.
And let me again go to that particular one that we're working at the situation and for that we need
to run the data file one.
There we go with that one.
Now we have the spark plug x is not defined because hex is not in that one.
Hey I need to pass a I need to pass be shifted on.
David go with also for the histogram.
We had this one for two columns box.
We had this one.
And let me check for surface one also shifted done and then we go with this office plot also.
So up to surface plot all will work fine modify add bubble plot here.
This will show me error.
So let me change up to that one.
So here we have haste.
After the haste we have box after that one we have surface.
So here we have office and in last we had the bubble one for which vilifies something else.
And what that is we also need to have an entire variable that will be size added by the user.
And this will be please.
And to these sized column for bubble bloat.
And we had this one after this one.
We will pass the variables inside that one
x equal to x because we had this one X and Y Y equal to weight and size equal to size.
If I copy this come on and try to run that one here.
Change these in to like see this one and this one a and this one like it shifted on.
David go but this is scatter.
This one must be lover and will be that one so this one also need to be bubble here.
There we go.
So this is how bubble folk here with this size and now the last condition that is the S in case then
use it again and does something that is not required.
So for that one of a final float will be equal to the same.
Come on then there
this will come on C and come on.
So we are also done with that one.
Now the condition when we have three columns.
So for three columns we need to have three inputs into the columns
you want to gloat there you have this one.
After that we have two inputs ex input and first column
y equal to second column.
We had this on second column.
After that we have said that will be about the third column.
So here we have turn and column.
Again you can add any number of column after this one.
Now we need to plot similarly like all these.
So for that one we just need to pass three variables instead of two.
But let me first check whether that will VoG or not.
So come on see this one.
Come on we changed this one into a and descending to B and this also need to be with one more bracket
maybe go with that one.
Now the same must be done here and now the third one that is C..
So this get bloat this one working fine after that one we have sketched out with more equal two markers
that we had the sun working fine then we have Bob working fine
paste working fine books working fine and in last we have so far is working fine.
David go with that one now.
The last one I need to check that is above the bubble blog.
Then we will edit all these there.
So just add bubble and never leave any command without checking that one so that you will be able to
find editing last.
So here we have X equal to x sorry a Y equal to B and then we have Z equal to C then we need to pass
these sites that will be B.
So David go with that one bubble broad also looking fine.
So just add in the variable Z here for three.
So that will be this one.
Come on c come on we and discern with said similarly all these up to this one 7.
We have this one.
J Is this up to Z
we have Z Z and this one also this one.
So now we have done up to these and in the last when we need to do the same with this one with the bubble
bloat we have this one bubble bloat here.
What have been this.
And they will then we have final blowout
which will be equal to deafen and then don't I bloat and then pass the kind equal to bubble.
They had this one bubble.
And these are X Y.
Come on T.
Come on V just add one more here that is Z equal to say they deal with that one.
So we are done with this thing and we just need to pass it as condition in that also.
That is the same condition in the previous one.
So come on c come on VE Day we had this one and this as is standing for these and lifts like when we
have coal I mean put more than three or anything else.
So in that case of Ed's condition will be like final bloat and that will be equal to print.
And here we will pass please
and to only 1 2 0 3 we go with that one.
So I've uploaded two also done we have defined for one column we have defined for two columns we have
defined for three columns one is very easy two is also easy you just need to focus that you need to
pass a list and take more than one inputs and in bubble you also need to input the size.
Same with the three.
This is similar to that one just one additional variable that is said in that case then we have as conditions
also and in last we will just return this final note to the program.
So there we have this one completed.
Now let me again replace this file with that filing the last.
Come on take harmonics and that is this one command we David go with this file also.
If I did on this one they we have dismissed so of a program is now completed we have set it up we have
defined the create data function that will define the data then we have two functions here below trend
plotted to one when we have to plot all the data.
Second one is when we need to plot some specific columns in which we have three conditions like then
we need to put 1 Column 2 Column 2 Column then we have program exceptions handling also in which program
get added After that we have of a main function which will define that which function must be passed
and where to pass then here we have our working cells that will define the data and all that.
So in the next next video we will check all of the working of these cells.
So thanks for watching.
This is about the creation of that one and see in the next video.