1 00:00:00,180 --> 00:00:06,270 Halaal, before going ahead in the last session of this project, let's have a quick recap of what we 2 00:00:06,270 --> 00:00:08,480 have done in our project. 3 00:00:08,490 --> 00:00:15,660 So we have done lots of analysis, lots of conclusions, project, lots of things like that since the 4 00:00:15,780 --> 00:00:16,580 last session. 5 00:00:16,590 --> 00:00:20,230 What we have to do, we have to automate all these things. 6 00:00:20,550 --> 00:00:26,130 So in this session, we have to what we have to do, we have to visualize this confounders activities, 7 00:00:26,130 --> 00:00:28,410 recover this and all these things. 8 00:00:28,560 --> 00:00:31,270 But you have to automate all these things. 9 00:00:31,290 --> 00:00:35,280 It means you have to create a function that what we have done in the very first session. 10 00:00:35,280 --> 00:00:40,290 But here we have to write such an advance function so that we back to each country. 11 00:00:40,530 --> 00:00:43,740 I just need statistics with respect to us. 12 00:00:43,860 --> 00:00:51,300 So once I will pass us to that function, I will get into entire trend of active recovered whatever 13 00:00:51,300 --> 00:00:51,960 feature I will do. 14 00:00:52,710 --> 00:00:58,330 So that first, let's have a quick preview of data frame. 15 00:00:58,350 --> 00:01:00,820 So this is exactly what it I feel like. 16 00:01:00,960 --> 00:01:07,250 I just need this additions or in data statistics with respect to us or Brazil. 17 00:01:07,680 --> 00:01:14,430 So it means here you have four parameters or you can say you have to consider four features, the confirmed 18 00:01:14,430 --> 00:01:18,240 cases that you will recover and your active cases. 19 00:01:18,240 --> 00:01:21,450 And you have to plot all these things with respect to that. 20 00:01:21,450 --> 00:01:26,840 It means you have to consider five features, Solectron, define some columns or you can select which 21 00:01:26,880 --> 00:01:28,360 defines and functions over here. 22 00:01:28,680 --> 00:01:35,700 So here I am going to say my function is getting word my country underscored like, say, visualisations, 23 00:01:35,700 --> 00:01:40,850 whatever function name you want to define what our parameter, this function will receive. 24 00:01:40,860 --> 00:01:42,450 I'm going to define it later. 25 00:01:42,510 --> 00:01:48,690 Now, what we have to do, let's say I have to visualize with respect to us, it means I need a separate 26 00:01:48,690 --> 00:01:55,110 data frame with respect to this, with respect to this USSI, for this what I have to do, I have to 27 00:01:55,110 --> 00:01:57,140 simply create a filter over here. 28 00:01:57,150 --> 00:02:04,470 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 29 00:02:04,470 --> 00:02:13,110 to simply put a condition as D of control reason equally close to us or whatever country name you are 30 00:02:13,110 --> 00:02:14,020 passing on here. 31 00:02:14,280 --> 00:02:18,750 So the very first bad and we do this function will receive the exact data from the second one. 32 00:02:19,050 --> 00:02:21,260 What is your country name. 33 00:02:21,630 --> 00:02:26,330 So and here I am going to say this country is close to country. 34 00:02:26,550 --> 00:02:28,850 So this is exactly your entire filter. 35 00:02:28,860 --> 00:02:32,490 So I have to just pass this filter in my data frame. 36 00:02:32,490 --> 00:02:36,000 So I'm going to say D.F. of all these stats. 37 00:02:36,180 --> 00:02:41,730 So it will exactly then be some better frame, say I have to store it in some data or data. 38 00:02:41,730 --> 00:02:42,660 Exactly. 39 00:02:42,660 --> 00:02:45,760 That data frame with respect to that particular country. 40 00:02:46,170 --> 00:02:51,930 Now, what I have to do in this data, in this data, which is exactly the frame, I just need five 41 00:02:51,930 --> 00:02:56,340 features, which are my date, confirm that record active. 42 00:02:56,700 --> 00:03:01,110 So for this time going to say data of location. 43 00:03:01,110 --> 00:03:05,040 And here I need all the rules and definitely some features. 44 00:03:05,040 --> 00:03:09,540 The very first feature I'm going to say, which is exactly my date. 45 00:03:09,720 --> 00:03:18,180 The second feature, I'm going to say my conformed data that I'm going to say, which is exactly my 46 00:03:18,330 --> 00:03:18,870 debts. 47 00:03:19,260 --> 00:03:23,670 And the fourth one I'm going to say my record. 48 00:03:24,060 --> 00:03:31,050 The fifth one I'm going to say, which is nothing but my active, which is over here, if you will see 49 00:03:31,380 --> 00:03:35,910 here you have but you will notice over here where I have all these features. 50 00:03:36,210 --> 00:03:40,690 So these all audio features is exactly in your group. 51 00:03:40,690 --> 00:03:47,370 Unaskable data is exactly the data frame that you have created in the very first session of your project. 52 00:03:47,640 --> 00:03:54,660 So over here you have all these parameters, your date, your gun phone cases, your that's your record 53 00:03:54,840 --> 00:03:56,100 and your activities. 54 00:03:56,700 --> 00:04:00,170 So in this, you have to access all these features. 55 00:04:00,450 --> 00:04:07,670 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 56 00:04:07,670 --> 00:04:09,780 it's all up to you, whatever name you want to assign. 57 00:04:10,320 --> 00:04:13,400 So this is my data to on which I have to do some analysis. 58 00:04:13,770 --> 00:04:20,070 So the very first letter I have to need, I create some subclass so that if I have to import some basic 59 00:04:20,070 --> 00:04:27,450 model, some, some, some of this over here, so that if I'm going to say from my tautly so from this 60 00:04:27,990 --> 00:04:33,390 slightly I have to say I have some, some module which is exactly my supplier. 61 00:04:33,660 --> 00:04:41,230 So I'm going to say from Pratley dot subclass I have to import my make underscores subplots. 62 00:04:41,250 --> 00:04:48,900 After what we have to do, I have to import some of that since I'm going to say import Lochley dot graphs 63 00:04:48,900 --> 00:04:52,440 underscore objects as a goal. 64 00:04:52,800 --> 00:04:54,010 So just executed. 65 00:04:54,030 --> 00:04:59,700 Now what I have to do, I'm going to say I have two very first caller func. 66 00:05:00,110 --> 00:05:07,550 Which is exactly makes applause, because on each and every plot I have to plot four confirmed cases, 67 00:05:07,550 --> 00:05:14,000 I had to plot for tax cases, I have to cut for the court cases and I have to plot four active cases. 68 00:05:14,000 --> 00:05:15,590 It means I need four guards. 69 00:05:15,920 --> 00:05:21,410 So here I am going to say, if you will stab, you will look at the entire documentation on this function. 70 00:05:21,830 --> 00:05:28,100 The number of roles, a number of columns you want to see, Rose, is nothing more like, say, one, 71 00:05:28,430 --> 00:05:34,970 and let's say columns are nothing but four, because here I have four features that I have to visualize. 72 00:05:35,390 --> 00:05:42,570 So here now and here you have some custom parameters over here, but you will see the parameters exactly 73 00:05:42,570 --> 00:05:47,190 your subplot under the score title, which is exactly this one. 74 00:05:47,570 --> 00:05:52,190 So here I'm going to say this parameter is nothing but subplot and titles. 75 00:05:52,430 --> 00:05:59,120 And here you have to say you have to just assign your values to the very first value you have to assign 76 00:05:59,120 --> 00:06:03,740 to your very first thought is exactly the same confirmed. 77 00:06:04,010 --> 00:06:09,290 And the second one is, let's say, active and active. 78 00:06:09,650 --> 00:06:10,540 This is active. 79 00:06:10,940 --> 00:06:16,610 The third that you have to assign to third thought is exactly or recover. 80 00:06:17,060 --> 00:06:25,280 The full value that you have to assign is your that once you would assign all these estos what you have 81 00:06:25,280 --> 00:06:32,530 to do, you have to Estoril subplots over here to examine the in my figure, then what you have to do, 82 00:06:32,570 --> 00:06:36,680 you have to slice each and every feature on this figure. 83 00:06:36,710 --> 00:06:45,950 So for this I'm just going to say fig dot add underscore Chris here I have a function and in this case 84 00:06:46,250 --> 00:06:53,260 what I have to do, I have to visualize this date and this confirmed. 85 00:06:53,510 --> 00:06:58,330 So here I'm going to say I have to use my scatterplot so go dot scatter. 86 00:06:58,610 --> 00:07:04,830 And here I have all the custom parameters over here in this scatterplot you will check out. 87 00:07:05,120 --> 00:07:15,140 So in this name, I am going to say here I have something which is exactly my Gunflint after it on X-axis, 88 00:07:15,140 --> 00:07:19,700 let's say I'm going to say it do nothing would be of date. 89 00:07:20,060 --> 00:07:23,900 And this name is exactly or you can see it's my title. 90 00:07:24,110 --> 00:07:31,460 And this XRX is nothing but the fourth date because you have to plot this back to date after doing all 91 00:07:31,460 --> 00:07:32,130 this stuff. 92 00:07:32,180 --> 00:07:37,110 So what I'm going to do, I have to set some value with this back to my Y-axis. 93 00:07:37,110 --> 00:07:41,990 So on Y-axis, I'm going to say dissolve all confirmed. 94 00:07:42,000 --> 00:07:45,710 So I'm going to say it's not B of it's data to. 95 00:07:45,910 --> 00:07:52,150 Yeah, because data two is your current data frame on which I have to do some sort of analysis. 96 00:07:52,160 --> 00:07:57,500 I'm going to say it is my data to and here I have to say it is exactly my confirmed. 97 00:07:57,920 --> 00:08:04,790 Once I have all these stats over here, what we have to do, we have to simply copy this, because I 98 00:08:04,790 --> 00:08:12,050 have to do this thing for my each and every features with respect to conform with respect to that, 99 00:08:12,830 --> 00:08:20,270 with respect to my record, after we have something with respect to my active this time I'm going to 100 00:08:20,270 --> 00:08:23,660 say this is let's say with respect to my dad. 101 00:08:23,670 --> 00:08:25,720 So I'm going to say with respect to my dad. 102 00:08:26,210 --> 00:08:31,400 So here I'm just going to say it does nothing but deal of that. 103 00:08:31,420 --> 00:08:35,400 So here you have to say you have to just modify this column name. 104 00:08:35,430 --> 00:08:38,900 So I'm going to say this is nothing but my div of that. 105 00:08:39,230 --> 00:08:44,670 And after doing all these things, you have to do for your record as well. 106 00:08:44,960 --> 00:08:47,150 So this is done, all these things. 107 00:08:47,150 --> 00:08:50,420 And one more thing you have to pass here. 108 00:08:50,420 --> 00:08:58,980 I'm going to say this is Stets is going to visualise, let's say, on row one or column one. 109 00:08:59,000 --> 00:09:07,850 So here I am going to say this is nothing but my role equals to one and definitely column equals to 110 00:09:08,090 --> 00:09:08,510 one. 111 00:09:08,840 --> 00:09:14,000 And in a similar way, I have to just copy this, all these things. 112 00:09:14,360 --> 00:09:21,650 And this time I have to say this is with respect to column two and this time this is with respect to 113 00:09:21,650 --> 00:09:22,850 my column three. 114 00:09:23,120 --> 00:09:26,070 And this time this will be my respect to column. 115 00:09:26,090 --> 00:09:26,930 So that's it. 116 00:09:27,200 --> 00:09:34,390 And this time what I have to do, basically, I have to visualize it for this record cases as well. 117 00:09:34,730 --> 00:09:41,690 So I'm going to say it is my record and this time it is nothing but data to of record. 118 00:09:41,690 --> 00:09:47,170 And the very last one is exactly my active cases. 119 00:09:47,480 --> 00:09:55,770 So I'm just going to say it is my active and this is nothing but my data to of active. 120 00:09:56,060 --> 00:09:59,480 So once I have all these stats, let's say I have. 121 00:09:59,570 --> 00:10:08,450 To assign subtitles for this, I'm going to say dot update on the school layout and in this, let's 122 00:10:08,450 --> 00:10:15,920 say, I have to assign some own custom height of my finger to say hi to close to six hundred and let's 123 00:10:15,920 --> 00:10:19,750 say it equals two pounds and whatever you want. 124 00:10:20,130 --> 00:10:24,160 So vertical two thousand, you can set eight hundred twelve hundred as well. 125 00:10:24,680 --> 00:10:31,580 And I have a parameter you can say tight in this context and in this context. 126 00:10:31,580 --> 00:10:43,460 I'm going to say that was says recorded cases of then I have something which is exactly my placeholder 127 00:10:43,700 --> 00:10:48,400 and I'm going to say this placeholder will get replaced by my forward function. 128 00:10:48,680 --> 00:10:53,930 And here I'm going to say format of country, whatever I will pass in my function. 129 00:10:54,320 --> 00:10:58,180 So that is exactly how I have to mind my analysis. 130 00:10:58,400 --> 00:11:02,380 And here I have some more parameters than you can play with that like system template. 131 00:11:02,390 --> 00:11:03,950 And there are tons of parameters. 132 00:11:03,980 --> 00:11:04,660 It's all up to you. 133 00:11:05,090 --> 00:11:14,870 So let's say my template nothing but let's say plotted on a score not to make my a little bit use of 134 00:11:14,930 --> 00:11:15,800 interactive. 135 00:11:15,830 --> 00:11:20,790 After doing all these things, I have to simply showcase my figures for they just go on. 136 00:11:21,560 --> 00:11:22,160 That's it. 137 00:11:22,280 --> 00:11:25,090 Now I have to simply execute all this does. 138 00:11:25,100 --> 00:11:28,280 Now what I have to do, I have to simply call this function. 139 00:11:28,490 --> 00:11:32,060 I have to just pass my door frame, which is exactly group data. 140 00:11:32,330 --> 00:11:40,440 Aleksi, I have to call this function for Brasi that say just execute the cell and you will see what 141 00:11:40,460 --> 00:11:41,260 here this is. 142 00:11:41,270 --> 00:11:42,500 You're amazing. 143 00:11:42,500 --> 00:11:48,160 And the statistics of BRAZZI, look at how this kind of confirmed cases. 144 00:11:48,240 --> 00:11:48,710 Exactly. 145 00:11:48,710 --> 00:11:50,440 Triangles, active cases. 146 00:11:50,450 --> 00:11:52,780 This is a trend of recovered cases. 147 00:11:53,270 --> 00:11:55,700 This is a trend of death cases in a similar way. 148 00:11:55,700 --> 00:11:59,750 You can call from any of the country whatever you want. 149 00:11:59,750 --> 00:12:07,740 Let's say for us, whatever country you want, let's say us or India or whatever country you want. 150 00:12:08,060 --> 00:12:10,850 So this is exactly the trend with respect to us. 151 00:12:10,850 --> 00:12:15,770 You will see how this that fluctuates or hit in a similar way. 152 00:12:15,770 --> 00:12:22,180 You can call for us, say, for Colombia for this year, for any other countries in the world. 153 00:12:22,640 --> 00:12:25,720 So that's all about the it's all about this project. 154 00:12:25,940 --> 00:12:33,200 Hope you love this session very much and how actually I have automated all the stuff over here. 155 00:12:33,680 --> 00:12:40,490 So in a similar way, you can automate all of these things by just thinking some logic, by just writing 156 00:12:40,490 --> 00:12:42,030 your own logic order. 157 00:12:42,290 --> 00:12:43,730 So that's all about this project. 158 00:12:43,730 --> 00:12:44,520 Hope you love it. 159 00:12:44,540 --> 00:12:45,200 Thank you. 160 00:12:45,540 --> 00:12:46,520 Have a nice day. 161 00:12:46,520 --> 00:12:47,410 Keep learning. 162 00:12:47,420 --> 00:12:48,320 Keep growing. 163 00:12:48,770 --> 00:12:49,640 Keep practicing.