1 00:00:00,270 --> 00:00:02,140 Let's get started with distributor. 2 00:00:02,580 --> 00:00:07,140 So basically in today's schedule, what we're going to learn, we are going to sorting the data back 3 00:00:07,140 --> 00:00:08,900 on the boards and distributor. 4 00:00:08,920 --> 00:00:13,990 We're going to start the database values in order to see the data from highest number of votes to the 5 00:00:14,010 --> 00:00:14,970 lowest number of works. 6 00:00:15,000 --> 00:00:21,900 OK, basically, we are going to see you're going to see the data value in order to keep data from some 7 00:00:22,010 --> 00:00:25,580 of what's really coming towards the basic implemental bottom. 8 00:00:25,830 --> 00:00:30,330 And we will learn how we can apply this on a jungle project. 9 00:00:30,570 --> 00:00:36,270 So basically, we will before this week, we can learn something on this. 10 00:00:36,570 --> 00:00:47,240 So we take a random Stringfellow were beaten by that programming python program. 11 00:00:47,310 --> 00:00:48,140 I hope to sign. 12 00:00:48,550 --> 00:00:57,120 OK, so we would go to the Scripture Dictionary, which would store to store the frequency. 13 00:00:58,600 --> 00:01:03,790 OK, frequency of characters, I hope to Spain. 14 00:01:04,550 --> 00:01:08,100 So so what we can do for C. 15 00:01:08,580 --> 00:01:11,700 S, I hope this is fine. 16 00:01:11,700 --> 00:01:19,810 If C h and if the characters already indicated, then I have a duty of C which is what would be all 17 00:01:19,880 --> 00:01:21,290 C plus one. 18 00:01:21,660 --> 00:01:23,610 So I would increase the frequency. 19 00:01:25,620 --> 00:01:28,950 Increase frequency. 20 00:01:31,320 --> 00:01:36,680 OK else be off the edge is also one. 21 00:01:37,640 --> 00:01:42,270 OK, initialize for first utterance. 22 00:01:42,280 --> 00:01:43,830 OK, we have done this before. 23 00:01:44,190 --> 00:01:46,480 OK, so this was pretty easy. 24 00:01:46,530 --> 00:01:51,370 So let me do one thing with the function defined. 25 00:01:51,510 --> 00:01:57,540 Bring it up D so here I will be key. 26 00:01:59,060 --> 00:02:04,860 I will this key and the eight is value ok. 27 00:02:05,070 --> 00:02:13,390 And I will do for a and the but I'm gonna be off I and end. 28 00:02:13,500 --> 00:02:21,290 OK, so this is a separate function and let me hit three B I hope this time. 29 00:02:22,320 --> 00:02:32,610 OK, you can see I made a mistake like that here so I made a function for this purpose on here you can 30 00:02:32,610 --> 00:02:39,540 see I have different characters, so many different characters, OK, each has a frequency eat but this 31 00:02:39,810 --> 00:02:40,960 seems very unscientific. 32 00:02:41,430 --> 00:02:42,380 So we saw the data. 33 00:02:42,520 --> 00:02:44,220 OK, so how do we do that. 34 00:02:44,550 --> 00:02:45,780 So we will carry on this. 35 00:02:46,400 --> 00:02:48,510 OK, let me do one thing like this. 36 00:02:51,030 --> 00:02:52,880 I have greater visibility. 37 00:02:53,250 --> 00:03:02,940 OK, so it the sort by key in ascending order. 38 00:03:02,980 --> 00:03:07,740 OK, so it is able to sort it out. 39 00:03:07,950 --> 00:03:18,440 Items gate is equivalent of you have to make a comparative function lambda x and X of zero. 40 00:03:18,840 --> 00:03:26,310 So I mean to say that I would sort of a key OK and I have to type this dignity 41 00:03:28,980 --> 00:03:29,430 for this. 42 00:03:30,180 --> 00:03:37,540 I took a type backward dictionary and Dupré data a book. 43 00:03:39,420 --> 00:03:46,360 So now it can see that I have this is a this is what we call empty space. 44 00:03:46,410 --> 00:03:50,340 OK, so this is this is in ascending order by keys. 45 00:03:50,340 --> 00:03:51,960 Please take this is my keys. 46 00:03:52,290 --> 00:04:00,810 Is it is it is it is a key element and and hope you are. 47 00:04:01,200 --> 00:04:04,810 And w why all Iraqis in this sorted by keys. 48 00:04:04,840 --> 00:04:06,120 OK, I hope that's fine. 49 00:04:06,580 --> 00:04:11,010 OK, let me do another thing, let me do 50 00:04:14,280 --> 00:04:17,240 my key in the sun. 51 00:04:19,050 --> 00:04:21,090 OK, so this is going to be very messy. 52 00:04:23,250 --> 00:04:24,390 I would come in this out. 53 00:04:24,840 --> 00:04:28,050 So what I can do, I can cope with this. 54 00:04:30,930 --> 00:04:41,160 And do this as big and trade data be, so any change, you have to make it. 55 00:04:41,190 --> 00:04:53,580 Yes, this is the reverse is true, I hope, despite OK, the worst is not here. 56 00:04:53,580 --> 00:04:57,840 You can see it has sort of like is in reverse order bickie. 57 00:04:58,050 --> 00:05:04,100 Why is the be all and end and all that here. 58 00:05:04,270 --> 00:05:07,140 Is this sorta in reverse order. 59 00:05:07,170 --> 00:05:10,650 OK, now we will do the same. 60 00:05:12,510 --> 00:05:18,390 What we can do now, sort by sort by value. 61 00:05:19,120 --> 00:05:21,930 OK, so we will do the same. 62 00:05:25,600 --> 00:05:26,530 We will do the same. 63 00:05:27,140 --> 00:05:38,350 Sorry for this, I would do this, I see it, I see and hear to what values what we can do and remove 64 00:05:38,350 --> 00:05:41,080 this one meets intellectual. 65 00:05:41,080 --> 00:05:43,380 One means I talk I values here. 66 00:05:43,430 --> 00:05:48,460 OK, so let me do it on this coming this also. 67 00:05:52,190 --> 00:05:58,910 So here you can see that now I have values one one one one, one, two, two, two, two, three, three, 68 00:05:59,310 --> 00:05:59,580 four. 69 00:05:59,810 --> 00:06:01,190 This is way values. 70 00:06:01,220 --> 00:06:04,210 OK, this is about values in ascending order. 71 00:06:04,550 --> 00:06:07,580 Now, the very same thing in descending order. 72 00:06:10,110 --> 00:06:18,180 This wasn't a Sunday, OK, and this is not the I would copy this. 73 00:06:21,870 --> 00:06:35,260 And in the very same thing, Reverse is able to Rupert and I look pray data be no error can see that. 74 00:06:35,270 --> 00:06:37,510 Yes, sorted by values in reverse order. 75 00:06:37,540 --> 00:06:41,910 So this is the same thing with John Lasseter. 76 00:06:42,400 --> 00:06:46,260 OK, so what we can do, we will do will move garbage. 77 00:06:46,990 --> 00:06:52,290 OK, this is a result cable and what we can do at Earth. 78 00:06:53,130 --> 00:07:04,120 OK, glasses of water button primary and then you can choose sort data. 79 00:07:06,280 --> 00:07:09,180 OK, we are going to soccer data. 80 00:07:09,490 --> 00:07:14,110 OK, so soccer data, OK? 81 00:07:16,860 --> 00:07:25,200 OK, they're descending sort of data in descending order. 82 00:07:25,240 --> 00:07:25,560 OK, 83 00:07:28,530 --> 00:07:35,900 now we're defining you it, but sort data. 84 00:07:36,570 --> 00:07:41,060 I didn't implement ocean views, dot soc data. 85 00:07:41,550 --> 00:07:45,640 A name is little sort data, OK? 86 00:07:46,470 --> 00:07:47,610 So I hope this is fine. 87 00:07:48,870 --> 00:07:53,120 I like to you both person. 88 00:07:53,400 --> 00:07:58,690 You order sort sort data. 89 00:07:59,280 --> 00:08:00,170 I hope that's fine. 90 00:08:00,360 --> 00:08:02,640 And then again a person you are it closer. 91 00:08:03,000 --> 00:08:09,100 OK, so I hope this is fine and let me check, check it on this one. 92 00:08:09,590 --> 00:08:10,950 No actually this is an error. 93 00:08:11,220 --> 00:08:20,910 That's our data request is a barometer and return bus. 94 00:08:21,540 --> 00:08:23,120 Let me check it in. 95 00:08:24,720 --> 00:08:28,230 OK, so I hope this will not get it done. 96 00:08:29,020 --> 00:08:30,630 OK, ok. 97 00:08:30,680 --> 00:08:31,920 OK, I made a mistake. 98 00:08:31,980 --> 00:08:32,360 Sorry. 99 00:08:34,110 --> 00:08:38,670 OK, so now what I can do. 100 00:08:41,010 --> 00:08:52,470 OK, I'll move to the local post poll 8000 now to the voting app slash working app. 101 00:08:54,150 --> 00:08:57,800 OK, so here you can see solid data in descending order. 102 00:08:57,840 --> 00:08:58,280 Order. 103 00:08:58,290 --> 00:08:59,080 I hope this is fine. 104 00:08:59,850 --> 00:09:03,390 So what you can do this to what? 105 00:09:03,990 --> 00:09:06,300 We are going to implement the very same logic. 106 00:09:06,720 --> 00:09:09,770 OK, to the end part, this should be the same, I guess. 107 00:09:09,780 --> 00:09:12,210 OK, this should be same. 108 00:09:12,240 --> 00:09:13,850 So I copied the code. 109 00:09:14,790 --> 00:09:19,020 OK, I hope this is fine and noble call. 110 00:09:22,640 --> 00:09:26,740 Is it what do I hope this is final? 111 00:09:27,500 --> 00:09:36,610 OK, but we need to implement that so it says a global sense, but don't confuse the defining keyword 112 00:09:36,650 --> 00:09:37,010 global. 113 00:09:37,040 --> 00:09:40,090 So in this key word, mobile, global. 114 00:09:40,090 --> 00:09:43,700 OK, so I'm accessing the variable that is global. 115 00:09:44,060 --> 00:09:46,280 OK, so no global call. 116 00:09:46,520 --> 00:09:50,180 So what I will do, I do global. 117 00:09:51,230 --> 00:09:59,300 It's a global dictionary that against sorted OK, global count not items. 118 00:10:00,690 --> 00:10:06,440 OK, and then we're going to sort by Maliki is what do lamda. 119 00:10:09,240 --> 00:10:18,340 X Xol one, then the reverse is true. 120 00:10:20,250 --> 00:10:21,130 I hope this is fine. 121 00:10:21,750 --> 00:10:27,690 OK, OK, we will do this and this is by then I'll submit it. 122 00:10:28,380 --> 00:10:29,640 So fighting us one more. 123 00:10:30,330 --> 00:10:37,470 Two, three, four, five, six, seven, eight, nine, 10, 11. 124 00:10:37,480 --> 00:10:47,300 But you can see the 11 would like to see, OK, look, what we cannot see is three, four, five, six. 125 00:10:47,310 --> 00:10:55,940 OK, some Jawa like one, two, three, four, five, six, seven standards. 126 00:10:56,340 --> 00:10:58,370 So we might just. 127 00:11:00,270 --> 00:11:05,400 OK, so JavaScript has nine, nine or ten descending orders. 128 00:11:06,120 --> 00:11:11,790 Looking now, you can see the magic as you saw in descending order and nine seven. 129 00:11:11,820 --> 00:11:17,400 OK, so because we were able to correct the logic on the server site and get it rendered on the front 130 00:11:17,500 --> 00:11:22,470 part, the data has been has been sorted by value. 131 00:11:22,500 --> 00:11:27,210 OK, so so you can cry out more in such a way. 132 00:11:27,510 --> 00:11:29,110 OK, we can do anything. 133 00:11:29,120 --> 00:11:31,060 Suppose I do hit. 134 00:11:31,440 --> 00:11:32,740 OK, ok. 135 00:11:33,080 --> 00:11:33,380 OK. 136 00:11:33,450 --> 00:11:37,190 Java has 11 words and a new school. 137 00:11:38,440 --> 00:11:44,210 Good as one word now it still has four, four, five, six but ok. 138 00:11:44,880 --> 00:11:49,560 Fifteen, seventeen of Escalus more than Python so I lose data in descending order. 139 00:11:50,400 --> 00:11:57,150 Again you can see the actual amount of sense because everything moves so you can implement your logic 140 00:11:57,150 --> 00:11:59,370 on your side and get them on from then. 141 00:11:59,400 --> 00:12:01,190 So that's a good part of the application. 142 00:12:01,590 --> 00:12:04,060 So in the next, what we are going to do. 143 00:12:04,320 --> 00:12:06,420 So what we are going to do, you can. 144 00:12:06,810 --> 00:12:07,830 And your application. 145 00:12:07,860 --> 00:12:10,880 So let to check here. 146 00:12:11,310 --> 00:12:12,180 That's 13. 147 00:12:12,900 --> 00:12:15,640 So 14, 15, 16, 17, 18, 19, 20. 148 00:12:15,660 --> 00:12:22,860 So by 33 votes I saw and then again, Python is back on top, so I'll catch up in the next call. 149 00:12:23,100 --> 00:12:25,800 We will start on database connectivity. 150 00:12:25,800 --> 00:12:31,370 How we can connect on application to the database, will start a new application and implement the whole 151 00:12:31,370 --> 00:12:34,700 of the basic database logics we can be. 152 00:12:34,800 --> 00:12:35,460 So thank you guys. 153 00:12:35,460 --> 00:12:36,070 Thank you so much. 154 00:12:36,070 --> 00:12:36,960 I got you in the next. 155 00:12:37,230 --> 00:12:37,530 Thank you.