Here we can see in this video we're going to London how we can plot a basic geographical block by using
these tools that we have.
So for that we require some data.
And here we have UCSC AFIS that is two antidote road to CSP and to unfold to rebuild CSP.
These are the most basic files that you will find on the Internet easily and able to download.
This one is the 2011 USA export agriculture file.
This one is 2014 Global GDP fine.
So here we One example is for only USA.
Second one is for complete global.
So we have both types of plotting.
Country wise and globe based.
So here we are.
Did you put the notebooks and before doing that one.
Let me set up the global buy in cufflinks and it will begin with importing the pandas.
So import pandas as Billy.
Then we have import tell why not float and buy as the sun P by that import float all right.
Oh flame me goes to work is off line here.
And this business Bill and import and other library for geographical plotting that is float like dot
graph underscored objects and discipline as like geo.
And then we will include Megaupload lib space in like make sure this is not complete object dust or
beaches.
And David goes you've written and dismantling successfully.
After that we will set up the notebooks to off line.
So here we have a neat notebook underscore more.
And the connection will be true.
And then this is a method of plot elevator auto flight so include here b o because we include the library
whose method the function in this one is at this starting with the point so be ordered in it notebook
put more connected is equal to two.
After that we will lower this data and to load this one unit to two again copy this one go to computer
hard drive users and whatever your location is and pasted there.
I have already pasted these two as you can see here these are the same files and if you don't not know
the location again TWD you will get the location in which your notebooks are running after that let
the load that one here.
So first one that is agree the name agree here and there we have this one and then we will import this
one BD dot freed underscore CSP because it's a CSC fine and there we have this one two and three.
Not every dot CSC shifted on debut here we have this file as you can see here in this file that two
important things like this one called these antique goods like l AK which are denoting the state of
USC like Alabama Alaska AK Arizona A-Z.
So instead of using these you can just use the courts there.
So the purpose of like index is here so you can use these for specifying the locations and then as you
can see here we have different columns for various values.
The second file we will include in the next videos might allow just this one and to have the idea of
columns print the had here.
So here we have these five files and all the columns that now we have the data also and now we will
take the idea from this data and try to plot a basic bill.
We are not going to use this data here on the plot.
We will just take some few details now to plot any cuff links simply blow that one say variable x.
Now you need to define the X and we will move from this one to this one which isn't required for steps
there to upload enigma.
For this plot it's not this plot x is a method of this off line plot all right.
So we will use field plot x.
Now defining the X because we have the appeal plot this is detail of x x is a variable that is defined
from this graph object's library.
So we will use BGP don't it simply brought the values on the structure of that particular state.
Like we're taking example of USA that it will define the USA diagram and then will be presented values
there.
So here we will create figures and the method is also known as the figure.
So P.G. dot figure in that one we need to pass to where he was or we can set parameters for two data.
Second well known as lay out loud defined that kind of scope we are using their data define the what
is the data represented on particular scopes.
So let this one layout be layout and data B data to variables.
Now we need to define layout.
I think you are getting this one then we have data.
So this this is the simple way that how we can present this thing.
Now defining these two variables is likely very easy.
You just need to remember this index only once then you will never required to learn that again because
that's not easy.
Both the values will have values in dictionary form.
And let me first go with this one.
So the data what actually is the data something that is represented on the graph.
And that requires some values.
So whenever you are plotting in data what are the things you need that what kind of output you need.
Second is the what are the values you are required on that particular locations sect.
Third is the location that without location how we will plot fourth one is like any color or any different
type of styling you need to add them something like these and you can also add some text on the particular
locations.
So all these basic values are under this but this data we will begin with the type here we have the
type.
And as I have told you you can use different methods also like base map but we are using Guadalupe plate.
So this one is a basic graph that that did not require any other liabilities to be included here.
It just required the simple plot like graph objects.
You can also use others like base maps and all these pathetic by different libraries.
So that's why I have just included only one and this one is very simple.
You will get the idea that how these block work then you will find it very easy to use at one and this
one is also easy to teach.
And that's why I have included that one.
After that you require the locations and the locations need to be defined like these.
You can take an example.
Let me take this five now here if I use this first one.
Not this one.
Let me begin with AK.
Then we have a Z.
Then we have this one a r.
Then we have this one here.
And instead of again writing that roulette we also include the end.
Otherwise I need to look in the CSU file to get the file there.
So here we have these five locations with their codes.
Now I have not used this table here.
I have just taken as an example.
So be sure that we are not using the CSU file right now.
We are just defining the data Maya.
Or like we define the random values if you even do not have this file you will still get the output.
So don't depend on defined that file is something you need to plug this one after that as I have told
you the few things that we require then we require a permit known as location more in small case letters
so here we have location mode without any space in hyphen sign.
And this one is something like I'm using USC and in the USA I am using states.
So hey I have USC steps then you need to have the values on that particular locations like you can add
any value 1 to 30 40 and 50 then we have this one text the text that will be shown on that particular
locations and this text can be anything like first one.
Let me show that one.
The name Alabama.
Then we have this one.
Alaska.
Then we have the Arizona.
And you can also add any name like I'm adding bother there only 41 and then we have California.
So these are the few variables that you required here.
Let me separate that one so that you will get the idea.
So they will go with a clear view of the data there.
So we have defined it date type the location location mode.
We have defined said and we have defined it.
Text now shifted to David Gill with Declan in this one you just need to have a scope that is represented
with Geo.
And in that one in quotes make sure in quotes scope and this scope is USC because uploading the details.
USC.
David go with that one.
And here we have the California Arizona Alaska bugger.
And this one Alabama.
So this one is a one if you noticed one this one too.
Then we have to this 130 this one bugger.
And this California 50.
So you can add any value and you as you have seen this one bugger.
So you can add any text so that it's completely or knew that how you need to define it and analyze the
data.
This one is used when you need to analyze the data like these kinds of states you will get that complete
in the next video and after that one if you need to upload that one on the same set like this one you
find defeat like difficulty in changing these slides so you can just a plot here you will get the output
on this screen.
One more thing.
Make sure you are using this one in small get letters.
If you use this for like USC you will get added in X so be sure you are using USC because these scopes
are Stander.
We cannot use anyone viable after that here we are done dismissed dismissed.
So thanks for watching and I hope you get the little idea that how these plots are plotted on Juve give
gold props and this one is very easy.
One more thing if I even removed acting and also that thing maybe that are already is hearing that one
but still you will get the output without that face.
So don't depend on that face because we have not used the file here.
We have just used the courts and the courts are certain narrowly defined in the label it is like this
figure.
So thanks for watching and we will continue in the next video and one more thing before that one try
to upload every state on this crap and I hope you get it.