1 00:00:06,180 --> 00:00:06,630 Here. 2 00:00:06,660 --> 00:00:14,060 Even so in this video we are going to finish a program that is the conditions when the columns are 2 3 00:00:14,120 --> 00:00:15,440 and columns are 3. 4 00:00:16,190 --> 00:00:16,950 So let's begin. 5 00:00:17,780 --> 00:00:22,250 So first of all we need to do with the two columns. 6 00:00:22,250 --> 00:00:25,760 Then we need to take two inputs from the user. 7 00:00:25,760 --> 00:00:29,150 So let we have X and we have Y. 8 00:00:30,110 --> 00:00:32,810 So these are the two inputs from the user. 9 00:00:33,170 --> 00:00:38,080 And we also need to add up and statement showing that and the two columns. 10 00:00:38,420 --> 00:00:48,680 So this one something like enter and the columns you warn to block it. 11 00:00:49,760 --> 00:01:07,820 And then the same syntax by selecting from data frame had Labor you'll note X will be like input and 12 00:01:07,820 --> 00:01:20,490 they we have first column then viable it'll be like input and then they will have second column. 13 00:01:20,960 --> 00:01:25,980 They will go with that one after that. 14 00:01:26,570 --> 00:01:33,060 Same we have the seven conditions just like the previous one that is bloat equal to one. 15 00:01:33,290 --> 00:01:36,860 Second one is the if deplored. 16 00:01:36,890 --> 00:01:39,790 Equal to equal to two. 17 00:01:40,100 --> 00:01:45,000 And let me organize them accordingly. 18 00:01:45,020 --> 00:01:55,390 After that we had if flawed equal to equal to three then fourth they go with full. 19 00:01:56,250 --> 00:02:06,740 Now five if bloat equal to five this time they are not going to use six and seven in one because they 20 00:02:06,740 --> 00:02:07,670 are different conditions. 21 00:02:07,680 --> 00:02:12,140 No we are going to have output at both the conditions. 22 00:02:12,140 --> 00:02:16,970 After that we have this one seven. 23 00:02:17,930 --> 00:02:21,200 In last we have an S condition. 24 00:02:21,200 --> 00:02:25,280 So these are the only possible conditions we need to work here. 25 00:02:25,520 --> 00:02:29,700 Make all these into NS so Elif leave. 26 00:02:29,800 --> 00:02:31,070 There we go with this one. 27 00:02:31,070 --> 00:02:37,380 This one now let me begin with the logic. 28 00:02:37,490 --> 00:02:43,460 First of all when the plot equal to one then on one we have this one that is the scatter. 29 00:02:43,700 --> 00:02:51,410 And if you remember how we can tell different plots is if I have this one here I need to pass there 30 00:02:52,190 --> 00:03:01,750 a list of variables like first column then I have here a second column shift written David go with two. 31 00:03:02,180 --> 00:03:05,090 So this is what we need to do in this particular situation. 32 00:03:06,080 --> 00:03:10,310 So for that just copy this one. 33 00:03:10,310 --> 00:03:19,070 Come on C and based in this case command we chase these in X go No way. 34 00:03:20,600 --> 00:03:25,060 So this is a scatter plot in that particular situation. 35 00:03:25,370 --> 00:03:30,110 So did the line plot and then we have of us get a plot. 36 00:03:30,110 --> 00:03:35,960 Let me go this with this one and change these in to X 37 00:03:39,110 --> 00:03:49,190 and Y I also just check this one so that you would not get any added after your code is complete. 38 00:03:49,190 --> 00:03:58,340 So I have copied that part shift on David over that one I should applaud with two columns. 39 00:03:58,460 --> 00:04:02,560 First one is to start load second one is that light blue. 40 00:04:02,960 --> 00:04:07,230 After that we have the third one is of a bar bloat. 41 00:04:07,650 --> 00:04:16,940 Then in that case let me just copy this one and paste it in every of these commands see this complete 42 00:04:17,150 --> 00:04:24,820 command we have and we command we command we and command we then we go. 43 00:04:24,920 --> 00:04:31,780 Now in case of this one that is this third one bar. 44 00:04:32,490 --> 00:04:42,240 We had this one and I think I of me I have made a mistake you lack one Beckett in that particular case. 45 00:04:43,380 --> 00:04:47,970 And after that one more record in this case 46 00:04:52,130 --> 00:04:53,130 admitted blessed is 47 00:05:02,380 --> 00:05:07,060 make sure there is no less and more brackets in particular situations. 48 00:05:07,090 --> 00:05:09,530 Now let me check the bar code. 49 00:05:09,580 --> 00:05:09,910 Come on. 50 00:05:09,910 --> 00:05:20,140 See this one board bloat and there we had this one colonel against a working to restart the again. 51 00:05:21,950 --> 00:05:29,580 Wait for this one restarting and David or maybe let me try to run this one. 52 00:05:29,990 --> 00:05:30,330 No 53 00:05:34,700 --> 00:05:36,300 so David O'Connor ready. 54 00:05:36,410 --> 00:05:37,530 This from running fine. 55 00:05:37,670 --> 00:05:45,050 And let me again go to that particular one that we're working at the situation and for that we need 56 00:05:45,050 --> 00:05:47,820 to run the data file one. 57 00:05:47,910 --> 00:05:49,950 There we go with that one. 58 00:05:50,060 --> 00:05:58,060 Now we have the spark plug x is not defined because hex is not in that one. 59 00:05:58,060 --> 00:06:02,650 Hey I need to pass a I need to pass be shifted on. 60 00:06:02,810 --> 00:06:07,620 David go with also for the histogram. 61 00:06:07,620 --> 00:06:11,710 We had this one for two columns box. 62 00:06:11,940 --> 00:06:12,830 We had this one. 63 00:06:13,530 --> 00:06:20,940 And let me check for surface one also shifted done and then we go with this office plot also. 64 00:06:22,080 --> 00:06:29,980 So up to surface plot all will work fine modify add bubble plot here. 65 00:06:30,090 --> 00:06:31,140 This will show me error. 66 00:06:31,320 --> 00:06:35,040 So let me change up to that one. 67 00:06:35,250 --> 00:06:37,310 So here we have haste. 68 00:06:37,410 --> 00:06:42,350 After the haste we have box after that one we have surface. 69 00:06:42,360 --> 00:06:49,860 So here we have office and in last we had the bubble one for which vilifies something else. 70 00:06:49,860 --> 00:06:57,780 And what that is we also need to have an entire variable that will be size added by the user. 71 00:06:58,140 --> 00:07:00,610 And this will be please. 72 00:07:00,660 --> 00:07:11,790 And to these sized column for bubble bloat. 73 00:07:12,200 --> 00:07:15,470 And we had this one after this one. 74 00:07:15,830 --> 00:07:18,890 We will pass the variables inside that one 75 00:07:21,860 --> 00:07:32,300 x equal to x because we had this one X and Y Y equal to weight and size equal to size. 76 00:07:32,600 --> 00:07:37,350 If I copy this come on and try to run that one here. 77 00:07:37,740 --> 00:07:49,780 Change these in to like see this one and this one a and this one like it shifted on. 78 00:07:50,050 --> 00:07:52,070 David go but this is scatter. 79 00:07:53,780 --> 00:08:03,550 This one must be lover and will be that one so this one also need to be bubble here. 80 00:08:03,730 --> 00:08:04,670 There we go. 81 00:08:05,060 --> 00:08:13,840 So this is how bubble folk here with this size and now the last condition that is the S in case then 82 00:08:13,850 --> 00:08:18,000 use it again and does something that is not required. 83 00:08:18,430 --> 00:08:24,160 So for that one of a final float will be equal to the same. 84 00:08:24,160 --> 00:08:25,660 Come on then there 85 00:08:28,660 --> 00:08:31,670 this will come on C and come on. 86 00:08:33,370 --> 00:08:35,950 So we are also done with that one. 87 00:08:35,980 --> 00:08:39,510 Now the condition when we have three columns. 88 00:08:39,990 --> 00:08:48,370 So for three columns we need to have three inputs into the columns 89 00:08:51,470 --> 00:08:56,140 you want to gloat there you have this one. 90 00:08:56,210 --> 00:09:01,790 After that we have two inputs ex input and first column 91 00:09:04,470 --> 00:09:09,570 y equal to second column. 92 00:09:09,600 --> 00:09:14,410 We had this on second column. 93 00:09:14,420 --> 00:09:20,630 After that we have said that will be about the third column. 94 00:09:20,630 --> 00:09:25,210 So here we have turn and column. 95 00:09:25,220 --> 00:09:30,980 Again you can add any number of column after this one. 96 00:09:31,010 --> 00:09:34,520 Now we need to plot similarly like all these. 97 00:09:35,300 --> 00:09:40,490 So for that one we just need to pass three variables instead of two. 98 00:09:41,150 --> 00:09:46,190 But let me first check whether that will VoG or not. 99 00:09:46,190 --> 00:09:48,940 So come on see this one. 100 00:09:49,070 --> 00:10:00,710 Come on we changed this one into a and descending to B and this also need to be with one more bracket 101 00:10:01,160 --> 00:10:03,290 maybe go with that one. 102 00:10:03,930 --> 00:10:14,470 Now the same must be done here and now the third one that is C.. 103 00:10:14,660 --> 00:10:23,900 So this get bloat this one working fine after that one we have sketched out with more equal two markers 104 00:10:24,880 --> 00:10:33,620 that we had the sun working fine then we have Bob working fine 105 00:10:36,020 --> 00:10:51,290 paste working fine books working fine and in last we have so far is working fine. 106 00:10:51,290 --> 00:10:54,280 David go with that one now. 107 00:10:54,680 --> 00:10:59,820 The last one I need to check that is above the bubble blog. 108 00:10:59,840 --> 00:11:02,900 Then we will edit all these there. 109 00:11:02,900 --> 00:11:10,490 So just add bubble and never leave any command without checking that one so that you will be able to 110 00:11:10,490 --> 00:11:12,470 find editing last. 111 00:11:12,470 --> 00:11:25,610 So here we have X equal to x sorry a Y equal to B and then we have Z equal to C then we need to pass 112 00:11:25,610 --> 00:11:29,120 these sites that will be B. 113 00:11:30,020 --> 00:11:33,490 So David go with that one bubble broad also looking fine. 114 00:11:34,340 --> 00:11:40,080 So just add in the variable Z here for three. 115 00:11:40,610 --> 00:11:44,420 So that will be this one. 116 00:11:44,420 --> 00:11:58,240 Come on c come on we and discern with said similarly all these up to this one 7. 117 00:11:58,370 --> 00:12:00,380 We have this one. 118 00:12:00,630 --> 00:12:02,840 J Is this up to Z 119 00:12:05,680 --> 00:12:13,050 we have Z Z and this one also this one. 120 00:12:13,060 --> 00:12:21,090 So now we have done up to these and in the last when we need to do the same with this one with the bubble 121 00:12:21,130 --> 00:12:26,520 bloat we have this one bubble bloat here. 122 00:12:27,630 --> 00:12:29,250 What have been this. 123 00:12:29,290 --> 00:12:32,570 And they will then we have final blowout 124 00:12:35,500 --> 00:12:47,540 which will be equal to deafen and then don't I bloat and then pass the kind equal to bubble. 125 00:12:48,260 --> 00:12:50,140 They had this one bubble. 126 00:12:51,040 --> 00:12:53,800 And these are X Y. 127 00:12:53,800 --> 00:12:55,630 Come on T. 128 00:12:55,630 --> 00:13:01,730 Come on V just add one more here that is Z equal to say they deal with that one. 129 00:13:03,250 --> 00:13:10,170 So we are done with this thing and we just need to pass it as condition in that also. 130 00:13:10,180 --> 00:13:14,190 That is the same condition in the previous one. 131 00:13:14,380 --> 00:13:24,790 So come on c come on VE Day we had this one and this as is standing for these and lifts like when we 132 00:13:24,790 --> 00:13:30,100 have coal I mean put more than three or anything else. 133 00:13:30,250 --> 00:13:40,710 So in that case of Ed's condition will be like final bloat and that will be equal to print. 134 00:13:40,780 --> 00:13:44,680 And here we will pass please 135 00:13:47,350 --> 00:13:56,180 and to only 1 2 0 3 we go with that one. 136 00:13:56,440 --> 00:14:03,760 So I've uploaded two also done we have defined for one column we have defined for two columns we have 137 00:14:03,760 --> 00:14:08,950 defined for three columns one is very easy two is also easy you just need to focus that you need to 138 00:14:08,950 --> 00:14:15,780 pass a list and take more than one inputs and in bubble you also need to input the size. 139 00:14:15,780 --> 00:14:17,460 Same with the three. 140 00:14:17,530 --> 00:14:25,480 This is similar to that one just one additional variable that is said in that case then we have as conditions 141 00:14:25,480 --> 00:14:31,500 also and in last we will just return this final note to the program. 142 00:14:32,200 --> 00:14:35,030 So there we have this one completed. 143 00:14:35,980 --> 00:14:41,020 Now let me again replace this file with that filing the last. 144 00:14:41,020 --> 00:14:50,190 Come on take harmonics and that is this one command we David go with this file also. 145 00:14:50,590 --> 00:14:58,540 If I did on this one they we have dismissed so of a program is now completed we have set it up we have 146 00:14:58,540 --> 00:15:04,480 defined the create data function that will define the data then we have two functions here below trend 147 00:15:04,480 --> 00:15:08,560 plotted to one when we have to plot all the data. 148 00:15:08,560 --> 00:15:14,230 Second one is when we need to plot some specific columns in which we have three conditions like then 149 00:15:14,230 --> 00:15:22,300 we need to put 1 Column 2 Column 2 Column then we have program exceptions handling also in which program 150 00:15:22,300 --> 00:15:29,740 get added After that we have of a main function which will define that which function must be passed 151 00:15:29,800 --> 00:15:36,790 and where to pass then here we have our working cells that will define the data and all that. 152 00:15:36,940 --> 00:15:44,260 So in the next next video we will check all of the working of these cells. 153 00:15:44,460 --> 00:15:45,700 So thanks for watching. 154 00:15:45,700 --> 00:15:49,750 This is about the creation of that one and see in the next video.