Halaal, before going deep down into the session, let's have a quick recap of what we all have done
in our previous session.
So we have basically performed data cleaning and data processing on our data so that we have our pre-process
data, so that we will perform lots of analysis on data and we will come up with some beautiful insights.
That is exactly our main goal.
So in this session, we have this assignment in which the very first analysis we have to perform is
where do the guest come from?
And after it we have to perform if patient analysis in which I have to use some kind of maps, some
kind of global maps, or if I'm going to use for some particular country, I can use some particular
country map.
So we have to come up with beautiful insights at the end, because that is exactly our main goal.
Yeah.
So, yeah, let me remind you, this is exactly Jupiter notebook and very focused what we have to do.
Let's see if you will observe in this in this data stream in this hotel, you have two categories,
the resort.
And second one is exactly your city hotel.
It means, let's say you have to perform separately for a resort hotel.
Yeah.
What what if a guest or what are a guest that that comes to the resort hotel and in a similar way,
you can perform this analysis for city order.
So it means you need to date a friend so that if I'm going to say data of hotel, data of hotel and
in this very first condition, I have to mention is exactly my resort hotel.
So here I'm going to say this is nothing but.
So either you can just copy from here and I'm just going to paste over here.
So this is exactly my very first condition.
And my second condition is exactly let me let me put this in my very first condition.
And after it my second condition is exactly make sure that booking must not be canceled.
So in this, I'm going to say here I have a feature which is exactly is canceled, which is exactly
this one.
So this has to 011.
So whereas you miss the booking is not going to cancel, one means that booking is going to be canceled.
So my very second filter is right into my very second condition is exactly my data of and here I have
to exit.
This is on the so-called canceled column and here I have to say this must be Mitsue.
So this is exactly my entire filter.
So what we have to do, we have to pass this filter in my data frame, that set of what you can do,
you can copy this and you can paste over here this time.
I have to say, this is exactly for my city hotel.
So I'm going to say this is exactly for my city hotel.
So here I'm going to say this is my auditorium and let's say this is exactly my city doorframes.
It just executed.
And if you are going to call, let's say, ahead on your resort, you will observe.
This is a beautiful done film that you exactly need in case of resort.
Similarly, if on this city, I'm going to call ahead, you will see this.
Is that in a frame with respect to city hotels?
So let's see if I'm going to call my ship on this resort.
Now, you will see over here, it has that much number of rules and that number of columns.
So let's say I have to perform this analysis.
Where do the guest come from in both my resort as well as in my city hotel for this?
What I am going to do, let's say that you can use your eye chart or definitely you can go ahead with
your map or any other map.
So let's say I'm going to use my pie chart over here.
So let's say for better visualization, you guys can go ahead with our popular model known as Blakley.
So if you haven't installed your A system, I'm going to say you can install this using PIP installed
properly so it will install you in your environment, whatever environment you are using.
So after it, I'm going to say I have to just import this and I have to import this broadly as well
as some submodular from the Spurtle.
So I'm going to say, which is exactly my graph underscore or be G.S., which is exactly this one second
one, and I have to create its allies as well.
But let's say it's Aliya's I'm going to create is nothing but let's say cool.
And after what we have to do, let's say to plot your map, you have to import something known as I
plot.
So I'm going to say from my this plot, I have two very first.
Import my submodular, which is exactly my offline model, because you have to make sure that your graph
must be visible in your offline mode because to to showcase your visual impliedly, you have to move
either offline or online.
So if you have to visualize your graph in your offline mode, you have to import this offline model
and form this offline.
You have to import something known as a plot because you have to visualize this graph in your Jupiter
notebook.
So after what I'm going to do, I'm just going to say import floridly DOT Xpress.
And from this I have to create a Aliya's, which is nothing but my de'ath to just execute it.
Now, what I'm going to do, let's say in this resort, in this resort, if I'm going to access my country
and on this country, if I'm going to call my, let's say, value consulate to get a pound of each and
every country, you will see with respect to this country, it has that much number of guests with respect
to this Dibia.
It has that much number of guest selects.
If you have two axis country, you guys can let's say you guys can call Jostein.
That's all there.
So I'm just going to say do nothing with my index.
So just executed.
It is a list of all your countries.
So I'm going to say to that thing with my labels.
So this is exactly my values with respect to each and every country.
So I'm going to store it in value, just execute it.
And from this you have a function which is exactly by and if you will shift plus tab over here, you
will get exactly the documentation.
What are the parameters that you can play with that over here?
So you will see it has a parameter, which is exactly my labels.
So here I am going to say my label is nothing but the labels that I have defined over ABL.
And after that what we have to do in this values parameter.
I have to assign my whatever values I have given it.
When I'm going to wear my mouth on my Veysel, I have to visualize data in the form of the label and
presented for this.
I'm going to say my Hoover in four in four is nothing but label plus percent.
So this is exactly the data that you are going to see whenever you are going to hoover your closet on
your visual.
And let's say I am also going to say I want some text.
So I'm going to say my text in four is nothing but let's say value after it, I'm going to store it
and let's say Grace just executed.
And now what I have to do for visualize this graph, you have to just pass it in your iPod plot, any
formal list.
So I'm just going to say the straight that's it.
Just executed.
It will take a couple of seconds and it will give you some beautiful picture visual.
So this is exactly that pie chart result for which I'm talking about.
If you are going to cover your mouth, you will see BRT has that much percentage of guest and is is
this GBR has that much percentage of guests, whereas this E.S.P has that much percentage of this.
Similarly, over here, you will see with respect to each and every country, you have some mark assigned
over there, let's say if you have to perform a spatial analysis instead of this pie chart.
So very first, I need that data so that I can visualize it on my quadruplet map because quadruply map
in such used cases will be very handy.
Aurier selected very first.
I'm going to see data of very first.
I have to add some filter which is exactly is concerned equally close to zero selected.
This is exactly my filter and I have to pass this filter in my data.
So now we have the data.
And on this data, if I'm going to add to this country and on this country, if I'm going to call this
value council or if I'm going to execute it, you will see you have all this stuff with respect to each
and every country.
That's I have to convert it in some way to things for this.
You guys can call this an index just executed.
It is exactly the data.
Let's say I have to do some modifications over here.
I have to play with this this column over here.
It's very first.
I have to store it somewhere else.
So let's say I'm going to say it is nothing but my country on a score wise on that score, Peter just
executed after it.
What we have to do very first, we have to access this data frame on this.
I will say this columns is nothing, but the very first column is exactly my country.
The second column I have to assign is exactly my number of guest number of guests with respect to each
and every country.
So just execute it.
And if I'm going to access or whatever and if I'm going to call.
You will see this is exactly that, the frame that you need, that you need.
So here I'm going to say, look, I have to perform I have to perform my core map over here.
So far, this is what I am going to do in this fix, which is exactly less of your plotline.
You have a function known as quadruplet map and just press shift tab.
You will get all the documentation of this function.
What data needs latitude and longitude, location, location mode and all these different different
parameters as well.
So the very first parameter is exactly what exactly is the frame?
I'm just going to say my famous country is providing its data, the second parameter, which we have
to take, which is exactly my location.
So in this location, I'm going to say very first I have to exit this.
And here I'm going to say whatever country I have over here, this is exactly my location.
So this is exactly my location.
And after it, what I'm going to do, let's say I have to assign some color.
Let's say I have to assign color on the basis of number of guests.
It means more the number of guest, darker the color will be.
So here I am going to see countries called Weidensaul Data.
And here I have to say my number of guests, which is exactly this one.
And after it, what we have to do, let's say whenever I'm going to hover my mouse on my callback map,
I have to I have to visualize some things here I'm going to say over underscore name.
And in these very first, I have to exit the data frame.
And on this, I'm just going to exit this country.
So I'm going to exit this country unless I have to assign some titles over there.
So that's my title is Nothing But Home.
Country of guest home.
Country of home, country guest.
So this is exactly my title.
So just execute it.
And this is your beautiful this is a beautiful coral map that you exactly need, and this is exactly
the color bar, which definitely gives some meaningful insight.
So if you are going to go over your mouth, I have to zoom in.
Let's zoom in.
So let's see.
This is exactly that concrete, which is my France that has that much number of guest.
Similarly, over here somewhere here you will see here is a country which is exactly BRT and it has
a maximum number of guests.
It means this Portugal has the highest number of guests.
So if I have to if I have to conclude this result, if I have to go to this visual, then I can say
few people from all over the world are staying in basically my resort and cities hotel.
But most of the guests are basically from Portugal and other countries in Europe, because you will
observe from us you don't have that much number of guests from India.
You don't have that much number of guest from paparazzi.
You don't have that much of guest workers in case of European countries who have a higher number of
guests.
So that's a type of conclusion, how you get fat from your.
So it's all about decision hopes you will love it very much.
Thank you.
Have a nice day.
Keep learning.
Keep growing.
Keep.