1 00:00:05,730 --> 00:00:11,340 Here we can see in this video we're going to London how we can plot a basic geographical block by using 2 00:00:11,340 --> 00:00:13,420 these tools that we have. 3 00:00:13,740 --> 00:00:15,590 So for that we require some data. 4 00:00:15,810 --> 00:00:23,220 And here we have UCSC AFIS that is two antidote road to CSP and to unfold to rebuild CSP. 5 00:00:23,250 --> 00:00:27,510 These are the most basic files that you will find on the Internet easily and able to download. 6 00:00:27,930 --> 00:00:31,900 This one is the 2011 USA export agriculture file. 7 00:00:31,920 --> 00:00:34,260 This one is 2014 Global GDP fine. 8 00:00:35,040 --> 00:00:37,980 So here we One example is for only USA. 9 00:00:37,980 --> 00:00:40,400 Second one is for complete global. 10 00:00:40,500 --> 00:00:43,000 So we have both types of plotting. 11 00:00:43,440 --> 00:00:45,000 Country wise and globe based. 12 00:00:46,110 --> 00:00:46,790 So here we are. 13 00:00:46,800 --> 00:00:49,630 Did you put the notebooks and before doing that one. 14 00:00:49,680 --> 00:00:55,230 Let me set up the global buy in cufflinks and it will begin with importing the pandas. 15 00:00:55,260 --> 00:00:58,410 So import pandas as Billy. 16 00:00:58,740 --> 00:01:12,620 Then we have import tell why not float and buy as the sun P by that import float all right. 17 00:01:12,720 --> 00:01:16,790 Oh flame me goes to work is off line here. 18 00:01:17,100 --> 00:01:24,550 And this business Bill and import and other library for geographical plotting that is float like dot 19 00:01:24,570 --> 00:01:32,880 graph underscored objects and discipline as like geo. 20 00:01:34,020 --> 00:01:43,670 And then we will include Megaupload lib space in like make sure this is not complete object dust or 21 00:01:43,670 --> 00:01:44,550 beaches. 22 00:01:45,030 --> 00:01:49,170 And David goes you've written and dismantling successfully. 23 00:01:49,170 --> 00:01:53,880 After that we will set up the notebooks to off line. 24 00:01:53,880 --> 00:01:57,250 So here we have a neat notebook underscore more. 25 00:01:58,290 --> 00:02:04,500 And the connection will be true. 26 00:02:04,500 --> 00:02:12,750 And then this is a method of plot elevator auto flight so include here b o because we include the library 27 00:02:13,520 --> 00:02:18,830 whose method the function in this one is at this starting with the point so be ordered in it notebook 28 00:02:18,850 --> 00:02:21,470 put more connected is equal to two. 29 00:02:21,720 --> 00:02:31,220 After that we will lower this data and to load this one unit to two again copy this one go to computer 30 00:02:32,700 --> 00:02:38,570 hard drive users and whatever your location is and pasted there. 31 00:02:38,650 --> 00:02:44,830 I have already pasted these two as you can see here these are the same files and if you don't not know 32 00:02:44,830 --> 00:02:53,500 the location again TWD you will get the location in which your notebooks are running after that let 33 00:02:53,500 --> 00:02:55,060 the load that one here. 34 00:02:55,240 --> 00:03:03,980 So first one that is agree the name agree here and there we have this one and then we will import this 35 00:03:03,980 --> 00:03:12,880 one BD dot freed underscore CSP because it's a CSC fine and there we have this one two and three. 36 00:03:12,950 --> 00:03:24,570 Not every dot CSC shifted on debut here we have this file as you can see here in this file that two 37 00:03:24,570 --> 00:03:31,480 important things like this one called these antique goods like l AK which are denoting the state of 38 00:03:31,480 --> 00:03:36,980 USC like Alabama Alaska AK Arizona A-Z. 39 00:03:37,150 --> 00:03:40,470 So instead of using these you can just use the courts there. 40 00:03:40,500 --> 00:03:47,710 So the purpose of like index is here so you can use these for specifying the locations and then as you 41 00:03:47,710 --> 00:03:52,380 can see here we have different columns for various values. 42 00:03:52,480 --> 00:03:59,590 The second file we will include in the next videos might allow just this one and to have the idea of 43 00:03:59,590 --> 00:04:02,350 columns print the had here. 44 00:04:02,350 --> 00:04:11,460 So here we have these five files and all the columns that now we have the data also and now we will 45 00:04:11,460 --> 00:04:15,170 take the idea from this data and try to plot a basic bill. 46 00:04:15,380 --> 00:04:18,500 We are not going to use this data here on the plot. 47 00:04:18,510 --> 00:04:29,060 We will just take some few details now to plot any cuff links simply blow that one say variable x. 48 00:04:29,130 --> 00:04:35,250 Now you need to define the X and we will move from this one to this one which isn't required for steps 49 00:04:35,250 --> 00:04:36,810 there to upload enigma. 50 00:04:37,020 --> 00:04:42,300 For this plot it's not this plot x is a method of this off line plot all right. 51 00:04:42,870 --> 00:04:47,460 So we will use field plot x. 52 00:04:47,460 --> 00:04:56,730 Now defining the X because we have the appeal plot this is detail of x x is a variable that is defined 53 00:04:56,730 --> 00:04:59,120 from this graph object's library. 54 00:04:59,160 --> 00:05:07,200 So we will use BGP don't it simply brought the values on the structure of that particular state. 55 00:05:07,200 --> 00:05:13,980 Like we're taking example of USA that it will define the USA diagram and then will be presented values 56 00:05:13,980 --> 00:05:14,200 there. 57 00:05:14,760 --> 00:05:19,320 So here we will create figures and the method is also known as the figure. 58 00:05:19,320 --> 00:05:27,150 So P.G. dot figure in that one we need to pass to where he was or we can set parameters for two data. 59 00:05:27,180 --> 00:05:34,470 Second well known as lay out loud defined that kind of scope we are using their data define the what 60 00:05:34,470 --> 00:05:37,720 is the data represented on particular scopes. 61 00:05:37,920 --> 00:05:44,690 So let this one layout be layout and data B data to variables. 62 00:05:44,730 --> 00:05:47,710 Now we need to define layout. 63 00:05:48,360 --> 00:05:51,440 I think you are getting this one then we have data. 64 00:05:51,600 --> 00:05:57,710 So this this is the simple way that how we can present this thing. 65 00:05:57,900 --> 00:06:01,170 Now defining these two variables is likely very easy. 66 00:06:01,470 --> 00:06:07,230 You just need to remember this index only once then you will never required to learn that again because 67 00:06:07,530 --> 00:06:09,510 that's not easy. 68 00:06:09,720 --> 00:06:13,800 Both the values will have values in dictionary form. 69 00:06:15,790 --> 00:06:18,930 And let me first go with this one. 70 00:06:20,280 --> 00:06:25,020 So the data what actually is the data something that is represented on the graph. 71 00:06:25,680 --> 00:06:28,580 And that requires some values. 72 00:06:28,650 --> 00:06:35,010 So whenever you are plotting in data what are the things you need that what kind of output you need. 73 00:06:35,010 --> 00:06:40,010 Second is the what are the values you are required on that particular locations sect. 74 00:06:40,030 --> 00:06:46,440 Third is the location that without location how we will plot fourth one is like any color or any different 75 00:06:46,440 --> 00:06:52,440 type of styling you need to add them something like these and you can also add some text on the particular 76 00:06:52,440 --> 00:06:53,350 locations. 77 00:06:53,400 --> 00:07:02,250 So all these basic values are under this but this data we will begin with the type here we have the 78 00:07:02,250 --> 00:07:02,590 type. 79 00:07:03,210 --> 00:07:09,140 And as I have told you you can use different methods also like base map but we are using Guadalupe plate. 80 00:07:10,560 --> 00:07:16,210 So this one is a basic graph that that did not require any other liabilities to be included here. 81 00:07:16,230 --> 00:07:19,280 It just required the simple plot like graph objects. 82 00:07:19,350 --> 00:07:24,240 You can also use others like base maps and all these pathetic by different libraries. 83 00:07:24,240 --> 00:07:29,350 So that's why I have just included only one and this one is very simple. 84 00:07:29,400 --> 00:07:35,340 You will get the idea that how these block work then you will find it very easy to use at one and this 85 00:07:35,340 --> 00:07:37,200 one is also easy to teach. 86 00:07:37,410 --> 00:07:39,420 And that's why I have included that one. 87 00:07:39,420 --> 00:07:45,960 After that you require the locations and the locations need to be defined like these. 88 00:07:47,990 --> 00:07:49,410 You can take an example. 89 00:07:49,470 --> 00:07:55,620 Let me take this five now here if I use this first one. 90 00:07:55,620 --> 00:07:56,810 Not this one. 91 00:07:57,000 --> 00:07:59,480 Let me begin with AK. 92 00:07:59,720 --> 00:08:02,670 Then we have a Z. 93 00:08:02,910 --> 00:08:07,930 Then we have this one a r. 94 00:08:08,720 --> 00:08:11,860 Then we have this one here. 95 00:08:12,020 --> 00:08:16,740 And instead of again writing that roulette we also include the end. 96 00:08:17,230 --> 00:08:21,800 Otherwise I need to look in the CSU file to get the file there. 97 00:08:22,760 --> 00:08:28,770 So here we have these five locations with their codes. 98 00:08:28,880 --> 00:08:31,940 Now I have not used this table here. 99 00:08:31,940 --> 00:08:33,740 I have just taken as an example. 100 00:08:33,770 --> 00:08:37,520 So be sure that we are not using the CSU file right now. 101 00:08:37,610 --> 00:08:40,110 We are just defining the data Maya. 102 00:08:40,120 --> 00:08:45,920 Or like we define the random values if you even do not have this file you will still get the output. 103 00:08:46,340 --> 00:08:52,040 So don't depend on defined that file is something you need to plug this one after that as I have told 104 00:08:52,040 --> 00:09:00,520 you the few things that we require then we require a permit known as location more in small case letters 105 00:09:02,030 --> 00:09:06,790 so here we have location mode without any space in hyphen sign. 106 00:09:06,830 --> 00:09:12,340 And this one is something like I'm using USC and in the USA I am using states. 107 00:09:12,470 --> 00:09:21,010 So hey I have USC steps then you need to have the values on that particular locations like you can add 108 00:09:21,010 --> 00:09:33,040 any value 1 to 30 40 and 50 then we have this one text the text that will be shown on that particular 109 00:09:33,040 --> 00:09:38,180 locations and this text can be anything like first one. 110 00:09:38,200 --> 00:09:39,260 Let me show that one. 111 00:09:39,260 --> 00:09:41,980 The name Alabama. 112 00:09:42,220 --> 00:09:43,730 Then we have this one. 113 00:09:43,810 --> 00:09:48,560 Alaska. 114 00:09:49,670 --> 00:09:51,790 Then we have the Arizona. 115 00:09:53,570 --> 00:10:00,380 And you can also add any name like I'm adding bother there only 41 and then we have California. 116 00:10:02,960 --> 00:10:05,350 So these are the few variables that you required here. 117 00:10:05,360 --> 00:10:08,710 Let me separate that one so that you will get the idea. 118 00:10:09,650 --> 00:10:14,070 So they will go with a clear view of the data there. 119 00:10:14,900 --> 00:10:19,280 So we have defined it date type the location location mode. 120 00:10:19,280 --> 00:10:21,620 We have defined said and we have defined it. 121 00:10:21,620 --> 00:10:29,770 Text now shifted to David Gill with Declan in this one you just need to have a scope that is represented 122 00:10:29,770 --> 00:10:30,440 with Geo. 123 00:10:31,090 --> 00:10:38,590 And in that one in quotes make sure in quotes scope and this scope is USC because uploading the details. 124 00:10:38,620 --> 00:10:39,700 USC. 125 00:10:39,970 --> 00:10:41,200 David go with that one. 126 00:10:41,230 --> 00:10:46,990 And here we have the California Arizona Alaska bugger. 127 00:10:47,110 --> 00:10:48,620 And this one Alabama. 128 00:10:48,730 --> 00:10:52,880 So this one is a one if you noticed one this one too. 129 00:10:52,900 --> 00:10:57,020 Then we have to this 130 this one bugger. 130 00:10:57,220 --> 00:10:58,700 And this California 50. 131 00:10:59,020 --> 00:11:03,330 So you can add any value and you as you have seen this one bugger. 132 00:11:03,940 --> 00:11:09,250 So you can add any text so that it's completely or knew that how you need to define it and analyze the 133 00:11:09,250 --> 00:11:10,630 data. 134 00:11:10,630 --> 00:11:16,250 This one is used when you need to analyze the data like these kinds of states you will get that complete 135 00:11:16,250 --> 00:11:23,350 in the next video and after that one if you need to upload that one on the same set like this one you 136 00:11:23,350 --> 00:11:31,020 find defeat like difficulty in changing these slides so you can just a plot here you will get the output 137 00:11:31,020 --> 00:11:31,810 on this screen. 138 00:11:32,950 --> 00:11:33,600 One more thing. 139 00:11:35,470 --> 00:11:37,780 Make sure you are using this one in small get letters. 140 00:11:37,780 --> 00:11:47,190 If you use this for like USC you will get added in X so be sure you are using USC because these scopes 141 00:11:47,190 --> 00:11:48,300 are Stander. 142 00:11:48,360 --> 00:11:55,410 We cannot use anyone viable after that here we are done dismissed dismissed. 143 00:11:55,820 --> 00:12:01,550 So thanks for watching and I hope you get the little idea that how these plots are plotted on Juve give 144 00:12:01,690 --> 00:12:05,160 gold props and this one is very easy. 145 00:12:05,180 --> 00:12:15,360 One more thing if I even removed acting and also that thing maybe that are already is hearing that one 146 00:12:15,390 --> 00:12:18,390 but still you will get the output without that face. 147 00:12:18,450 --> 00:12:23,490 So don't depend on that face because we have not used the file here. 148 00:12:23,490 --> 00:12:28,290 We have just used the courts and the courts are certain narrowly defined in the label it is like this 149 00:12:28,290 --> 00:12:28,700 figure. 150 00:12:29,550 --> 00:12:35,550 So thanks for watching and we will continue in the next video and one more thing before that one try 151 00:12:35,560 --> 00:12:39,140 to upload every state on this crap and I hope you get it.