Halaal, in the previous session, what we have done, we have performed lots of little preparation
on our data and we have basically defined this very amazing function and using this function, we had
just read our data by just writing a single block of code over here in this session.
What we have to do, we have to analyze the data.
So the very first problem statement is exactly which country has maximum total cases, total debts,
total recovered cases and total active cases.
So this is exactly the very first analysis that you have to deal with that.
So let's see what I'm going to do over here very first and just going to check how exactly my data looks
like.
So for this, I'm just going to call ahead and you will see this is exactly a data set on which you
have to do this analysis.
So you will figure it out over here.
Here you have multiple features over here.
This total case is this total debt and all these features.
But you need some certain features so that you can go ahead with your analysis.
So aive on this word, underscore data, data frame.
I just want to call these columns or you will get all the column names over here.
So that column data exactly need for my analysis on nothing but which are exactly the total cases.
So I'm just going to copy from here and Lexan would define a list over here, let's say list his column.
The very first is exactly my total cases after eight.
I just need this total debt, so I just need this one.
After that, I need basically this total recovery, this one.
So either you can do this manually or you can copy paste.
It's it's nothing fancy.
After what I have to do, I have to say I just need this active cases, which is exactly this one.
So I'm just going to say these are exactly my active cases.
Now, what I have to do, I can I trade on each and every feature.
So for this, I'm going to say for I n this list, which is exactly my columns list now on each and
every feature you have to do certain kind of.
Now it's all up to you what kind of resolution you want.
Let's say for here you can definitely go ahead with your three map, your pie chart, your bar plot.
It's all up to you.
So let's say here I'm going to use my map.
So if you're not that much of it about what exactly is a tree map visual that just like a tree like
structure and wherever, if a particular block has a bigger size, it means that particular block has
a higher account.
So for this this tree map, we have this tree map inside of our block leaves the very first I have to
import my part, which I'm going to say import this plot, DOT Xpress, and I'm going to create its
allies as Peerce.
And now using this, I have my function, which is exactly my map.
And if I'm going to pass shift BASTABLE, you will get all the custom barometer's that you can play
with that.
If you really want your tree map a little bit, user-friendly, that's all up to you.
And after what I have to do, we have to set some custom parameters over here.
Let's say I just need 20 countries that get was effected by this coronavirus.
So it means I just need these top 20 rules from this data frame for this what I'm going through.
I'm just going to say what Alesco data dot I know, which is exactly my index location.
And in this index location, I'm going to say I just need my first twenty two.
That's it.
After what I have to do, I have some parameters as well if you will.
Best shiftless tab, you will get a parameter which is exactly your values.
So this is exactly the parameter that you have to take care of it.
So values is equal to because on each and every feature on the basis of this value, your block size
will be assigned.
So after it, what I'm going to do in this spot that you have to reflect on your block.
So in this part you have to mention a column name, which is exactly this country slash region.
So here I am going to say this is exactly my path of doing all this stuff.
Here you have certain parameters still here.
You have templates or data, multiple parameters over here.
Let's say I have to assign some titles as well.
So my title is nothing, but let's say my title is three map representation, three map representation
of different countries.
With respect to their future, so I'm going to say with respect to there and here, I'm going to add
a placeholder and this placeholder, I'm going to set its value by using my formal function.
So here I am going to say DOT format of AI and whatever placeholder over here, it will receive this
value from this format, from this I.
So this is what my placeholder will do over here.
So this is exactly my code.
And still, if you have to do some modifications, you can install it in some good.
And after what you guys can do, you guys can call simply dot show over here.
And if I'm going to execute this well now, you will get this amazing tree map, the very first one
with respect to total cases.
And you can simply visualize over here, you see has a bigger block after it.
We have a block after it.
We have an entire block.
It means these are the three top notch countries with respect to my higher number of total cases, because
what I have told you with respect to tree map, because the block will be higher, the council, it
meets us, it has a higher number of count.
It has a highest priority.
And what tree map will do, Trimark will basically assign some kind of hierarchy, some kind of priority.
That's what my team will do in a similar way if I'm going to scroll with respect to total that.
So this is exactly tree map with respect to total debt.
And you will see what hear you say is still opinion over here.
And with respect to your total record, is still USA and Brazil and India again over here.
But with respect to active number of cases, the very first is exactly.
You can see almost 50 percent of total number of cases.
If you are going to hover your mouse over here, you can simply visualize how much active number of
cases with respect to you as you have.
Whereas with respect to Brazil, you have that much number of cases with respect to India, which is
right now the third country, which has the highest number of active number of cases.
So that's basically it.
And France, your conclusion from your visa.
So let's go ahead with our next statement, which is exactly what is the trend of confirmed that and
recovered as well as your active cases.
So whenever someone is asking what is the trend going in your data?
Or you can say, Alexian, time to this data, what is a trend ongoing over here in a stock market anywhere
else?
So then someone will ask you, what is a trend?
It means you can definitely go ahead with your plot over here.
So it means you have to considered line item here.
So far, this what we guys can do, we guys can use properly.
And here we have a function which is exactly line.
So price shift postop to get the documentation and all the custom parameters, the data frame and all
these things.
So my data frame is nothing but my device, which is exactly this one.
And if I'm going to call, let's say DNS conveys DOT had over here to get a preview.
You will see these are all the columns over here.
These are all my column names.
So on X axis, I definitely need this state because with this back to date, I have to plot all these
things.
So I'm going to say on X axis, I just need this date and after it on Y axis, I need this.
Confirmed that and Rickover.
So let's say I'm going to say the underscore y dot columns over here.
And these are all those stats that I exactly need to plot on my landlord.
So I'm going to say I have to define all these stuffs in my list.
That's it.
And after that you have to assign some titles.
You guys can definitely say here I'm going to say my title is nothing, but let's say my title is COGAT
Cases with respect to date.
So here I'm going to say covid cases with respect to date, this is exactly my title.
And if you are going to pass shiftless tab over here, you guys will get all the defined custom parameters
over here.
How do you have a barometer, which is exactly your template?
So let's say ahead of time it is not.
Let's say I have to assign some my own custom templates for this.
I'm going to say my template, which is exactly this one.
Let's say I just need some user friendly template.
So for this week, I can pass my block only underscore.
Dark over there.
That's it.
And if I'm going to execute it, it will definitely return this amazing visual over here.
And you can definitely conclude from this visual, this is exactly what exponential trend with respect
to your confirmed number of cases, whereas with respect to this record number of cases, it is not
that much explanation and with respect to this number of deaths, so it is almost in a linear fashion.
Whereas with respect to this active so you will see this has that much fashion which somehow moves in
up to some extent.
You can see it is somehow very approx to your zigzag fashion.
So that's all about this session of the session very much.
Thank you.
Have a nice day.
Keep learning.
Keep growing.
Keep practicing.