Halaal, before going ahead in the last session of this project, let's have a quick recap of what we
have done in our project.
So we have done lots of analysis, lots of conclusions, project, lots of things like that since the
last session.
What we have to do, we have to automate all these things.
So in this session, we have to what we have to do, we have to visualize this confounders activities,
recover this and all these things.
But you have to automate all these things.
It means you have to create a function that what we have done in the very first session.
But here we have to write such an advance function so that we back to each country.
I just need statistics with respect to us.
So once I will pass us to that function, I will get into entire trend of active recovered whatever
feature I will do.
So that first, let's have a quick preview of data frame.
So this is exactly what it I feel like.
I just need this additions or in data statistics with respect to us or Brazil.
So it means here you have four parameters or you can say you have to consider four features, the confirmed
cases that you will recover and your active cases.
And you have to plot all these things with respect to that.
It means you have to consider five features, Solectron, define some columns or you can select which
defines and functions over here.
So here I am going to say my function is getting word my country underscored like, say, visualisations,
whatever function name you want to define what our parameter, this function will receive.
I'm going to define it later.
Now, what we have to do, let's say I have to visualize with respect to us, it means I need a separate
data frame with respect to this, with respect to this USSI, for this what I have to do, I have to
simply create a filter over here.
So here I am going to say that if I have to say what our data frame I have in this data frame, I have
to simply put a condition as D of control reason equally close to us or whatever country name you are
passing on here.
So the very first bad and we do this function will receive the exact data from the second one.
What is your country name.
So and here I am going to say this country is close to country.
So this is exactly your entire filter.
So I have to just pass this filter in my data frame.
So I'm going to say D.F. of all these stats.
So it will exactly then be some better frame, say I have to store it in some data or data.
Exactly.
That data frame with respect to that particular country.
Now, what I have to do in this data, in this data, which is exactly the frame, I just need five
features, which are my date, confirm that record active.
So for this time going to say data of location.
And here I need all the rules and definitely some features.
The very first feature I'm going to say, which is exactly my date.
The second feature, I'm going to say my conformed data that I'm going to say, which is exactly my
debts.
And the fourth one I'm going to say my record.
The fifth one I'm going to say, which is nothing but my active, which is over here, if you will see
here you have but you will notice over here where I have all these features.
So these all audio features is exactly in your group.
Unaskable data is exactly the data frame that you have created in the very first session of your project.
So over here you have all these parameters, your date, your gun phone cases, your that's your record
and your activities.
So in this, you have to access all these features.
So if I'm going to say let's say this is my entire data frame, I'm going to name it as Lexia data to
it's all up to you, whatever name you want to assign.
So this is my data to on which I have to do some analysis.
So the very first letter I have to need, I create some subclass so that if I have to import some basic
model, some, some, some of this over here, so that if I'm going to say from my tautly so from this
slightly I have to say I have some, some module which is exactly my supplier.
So I'm going to say from Pratley dot subclass I have to import my make underscores subplots.
After what we have to do, I have to import some of that since I'm going to say import Lochley dot graphs
underscore objects as a goal.
So just executed.
Now what I have to do, I'm going to say I have two very first caller func.
Which is exactly makes applause, because on each and every plot I have to plot four confirmed cases,
I had to plot for tax cases, I have to cut for the court cases and I have to plot four active cases.
It means I need four guards.
So here I am going to say, if you will stab, you will look at the entire documentation on this function.
The number of roles, a number of columns you want to see, Rose, is nothing more like, say, one,
and let's say columns are nothing but four, because here I have four features that I have to visualize.
So here now and here you have some custom parameters over here, but you will see the parameters exactly
your subplot under the score title, which is exactly this one.
So here I'm going to say this parameter is nothing but subplot and titles.
And here you have to say you have to just assign your values to the very first value you have to assign
to your very first thought is exactly the same confirmed.
And the second one is, let's say, active and active.
This is active.
The third that you have to assign to third thought is exactly or recover.
The full value that you have to assign is your that once you would assign all these estos what you have
to do, you have to Estoril subplots over here to examine the in my figure, then what you have to do,
you have to slice each and every feature on this figure.
So for this I'm just going to say fig dot add underscore Chris here I have a function and in this case
what I have to do, I have to visualize this date and this confirmed.
So here I'm going to say I have to use my scatterplot so go dot scatter.
And here I have all the custom parameters over here in this scatterplot you will check out.
So in this name, I am going to say here I have something which is exactly my Gunflint after it on X-axis,
let's say I'm going to say it do nothing would be of date.
And this name is exactly or you can see it's my title.
And this XRX is nothing but the fourth date because you have to plot this back to date after doing all
this stuff.
So what I'm going to do, I have to set some value with this back to my Y-axis.
So on Y-axis, I'm going to say dissolve all confirmed.
So I'm going to say it's not B of it's data to.
Yeah, because data two is your current data frame on which I have to do some sort of analysis.
I'm going to say it is my data to and here I have to say it is exactly my confirmed.
Once I have all these stats over here, what we have to do, we have to simply copy this, because I
have to do this thing for my each and every features with respect to conform with respect to that,
with respect to my record, after we have something with respect to my active this time I'm going to
say this is let's say with respect to my dad.
So I'm going to say with respect to my dad.
So here I'm just going to say it does nothing but deal of that.
So here you have to say you have to just modify this column name.
So I'm going to say this is nothing but my div of that.
And after doing all these things, you have to do for your record as well.
So this is done, all these things.
And one more thing you have to pass here.
I'm going to say this is Stets is going to visualise, let's say, on row one or column one.
So here I am going to say this is nothing but my role equals to one and definitely column equals to
one.
And in a similar way, I have to just copy this, all these things.
And this time I have to say this is with respect to column two and this time this is with respect to
my column three.
And this time this will be my respect to column.
So that's it.
And this time what I have to do, basically, I have to visualize it for this record cases as well.
So I'm going to say it is my record and this time it is nothing but data to of record.
And the very last one is exactly my active cases.
So I'm just going to say it is my active and this is nothing but my data to of active.
So once I have all these stats, let's say I have.
To assign subtitles for this, I'm going to say dot update on the school layout and in this, let's
say, I have to assign some own custom height of my finger to say hi to close to six hundred and let's
say it equals two pounds and whatever you want.
So vertical two thousand, you can set eight hundred twelve hundred as well.
And I have a parameter you can say tight in this context and in this context.
I'm going to say that was says recorded cases of then I have something which is exactly my placeholder
and I'm going to say this placeholder will get replaced by my forward function.
And here I'm going to say format of country, whatever I will pass in my function.
So that is exactly how I have to mind my analysis.
And here I have some more parameters than you can play with that like system template.
And there are tons of parameters.
It's all up to you.
So let's say my template nothing but let's say plotted on a score not to make my a little bit use of
interactive.
After doing all these things, I have to simply showcase my figures for they just go on.
That's it.
Now I have to simply execute all this does.
Now what I have to do, I have to simply call this function.
I have to just pass my door frame, which is exactly group data.
Aleksi, I have to call this function for Brasi that say just execute the cell and you will see what
here this is.
You're amazing.
And the statistics of BRAZZI, look at how this kind of confirmed cases.
Exactly.
Triangles, active cases.
This is a trend of recovered cases.
This is a trend of death cases in a similar way.
You can call from any of the country whatever you want.
Let's say for us, whatever country you want, let's say us or India or whatever country you want.
So this is exactly the trend with respect to us.
You will see how this that fluctuates or hit in a similar way.
You can call for us, say, for Colombia for this year, for any other countries in the world.
So that's all about the it's all about this project.
Hope you love this session very much and how actually I have automated all the stuff over here.
So in a similar way, you can automate all of these things by just thinking some logic, by just writing
your own logic order.
So that's all about this project.
Hope you love it.
Thank you.
Have a nice day.
Keep learning.
Keep growing.
Keep practicing.