1 00:00:00,090 --> 00:00:05,890 Hello and welcome to the very first session of this covid-19 data analysis project. 2 00:00:06,120 --> 00:00:13,380 So this is exactly why Jupiter ID, where we have to do a lot of analysis depending upon what problems 3 00:00:13,380 --> 00:00:14,250 teckman we have. 4 00:00:14,730 --> 00:00:21,480 So this is exactly the very first assignment for this particular session in which I had to do a lot 5 00:00:21,570 --> 00:00:29,130 of data, because before going deep into our analysis, we have to perform lots of analysis on our data. 6 00:00:29,160 --> 00:00:35,580 And you will figure out over here, these are all my datasets on which I have to do a lot of preparation 7 00:00:35,850 --> 00:00:38,010 before doing any sort of analysis. 8 00:00:38,280 --> 00:00:43,700 So let me open my book ID and let me board some basic stuff over here. 9 00:00:43,710 --> 00:00:51,210 Let's say Panda's number by matplotlib, Seabourne floridly and all these validation, liability and 10 00:00:51,210 --> 00:00:52,180 data manipulation. 11 00:00:52,180 --> 00:00:58,770 Labadee So very first, I'm just going to import my bonders, which is extensively used for data mining, 12 00:00:58,770 --> 00:01:05,490 pollution and extraction as well after it for some numerical computations on data, you guys can import 13 00:01:05,490 --> 00:01:13,170 your name by module and it creates its Ania's as an IP or you can say it's shortcode as an IP after 14 00:01:13,260 --> 00:01:17,370 we have to import something known as which is exactly my matplotlib. 15 00:01:17,580 --> 00:01:23,160 And from our play we have to import something which is plot and tusked. 16 00:01:23,160 --> 00:01:25,120 It's Eleazar spelled after it. 17 00:01:25,140 --> 00:01:32,130 I have to import something which is exactly my Ascendis and just create its Aliya's as Ascendis. 18 00:01:32,460 --> 00:01:36,000 Let's say I have to deal with my operating system as well. 19 00:01:36,360 --> 00:01:39,990 So for this I have to import my OS module as well. 20 00:01:39,990 --> 00:01:40,560 That's it. 21 00:01:40,860 --> 00:01:43,590 Just executed all the stuff over here. 22 00:01:43,590 --> 00:01:50,040 And now what I'm going to do, let's say I'm just going to copy this entire thought from here and using 23 00:01:50,040 --> 00:01:57,150 this OS module, I'm just going to call a function which is List Dayak, which is exactly my list of 24 00:01:57,150 --> 00:02:01,470 all the directories available at this particular port. 25 00:02:01,470 --> 00:02:02,990 And this is exactly that path. 26 00:02:03,030 --> 00:02:09,770 And if I'm going to execute it, you will see you have all these stuffs available at this particular 27 00:02:09,780 --> 00:02:10,080 part. 28 00:02:10,080 --> 00:02:16,650 You will get all your data sets available at this particular like let's say I have to store it somewhere 29 00:02:16,650 --> 00:02:16,800 else. 30 00:02:16,830 --> 00:02:21,890 Let's say I'm going to say this is exactly my files and I'm just going to print it as well. 31 00:02:21,890 --> 00:02:23,510 Let's say just execute it. 32 00:02:23,520 --> 00:02:25,350 And this is exactly that list. 33 00:02:25,510 --> 00:02:31,290 Using that list, you can do a lot of preparation, ordering data as you will figure it out over here. 34 00:02:31,320 --> 00:02:33,950 You have multiple datasets over here. 35 00:02:33,960 --> 00:02:37,020 It means you have to read your data again and again. 36 00:02:37,140 --> 00:02:38,970 So why not try to create a function? 37 00:02:38,970 --> 00:02:43,840 Because function will make this task much, much easier over here. 38 00:02:44,070 --> 00:02:49,110 So let me define some function over here that would define a function using this def keyword. 39 00:02:49,380 --> 00:02:53,820 And let's see, my function name is nothing but like to read on this code data. 40 00:02:54,100 --> 00:03:00,840 This is exactly the function name and in this function name, whatever parameter I'm going to pass using 41 00:03:00,840 --> 00:03:05,340 that parameter, I can definitely read my data and I can create its data. 42 00:03:05,580 --> 00:03:07,480 That's what this function will do. 43 00:03:07,830 --> 00:03:12,270 So here what I'm going to do very first, I had to use all I can say. 44 00:03:12,270 --> 00:03:17,900 I have to call a function, which is exactly my read on see, which is exactly this one. 45 00:03:18,120 --> 00:03:21,890 And here you have to pass some part and some filename. 46 00:03:22,200 --> 00:03:29,250 So this function will receive whatever part Hambling to Pastoria and whatever filename I'm going to 47 00:03:29,250 --> 00:03:30,000 pass over here. 48 00:03:30,540 --> 00:03:36,980 So here I have to mention is part and then I have to add my forward slash over here. 49 00:03:36,990 --> 00:03:40,140 So this is exactly my forward slash after it. 50 00:03:40,140 --> 00:03:46,710 I have to say I have to give my findings, so I have to just pass this filename as well and whatever 51 00:03:46,710 --> 00:03:48,140 data frame it will return me. 52 00:03:48,150 --> 00:03:50,430 So I'm just going to say just return. 53 00:03:50,910 --> 00:03:54,300 And if I'm going to execute, all of this stuff gets executed. 54 00:03:54,640 --> 00:03:57,270 Let's say what I'm going to do now. 55 00:03:57,270 --> 00:03:59,520 I have to simply call this function. 56 00:03:59,670 --> 00:04:06,150 And very first in this parameter, if I'm going to test shift plus over here now, you will figure out 57 00:04:06,300 --> 00:04:09,030 what exactly the path, what is your filename? 58 00:04:09,030 --> 00:04:12,660 Let's say I have to create a variable, which is exactly my part. 59 00:04:12,660 --> 00:04:15,560 And in this part, I have to restore my part. 60 00:04:16,010 --> 00:04:19,140 Like I'm just going to paste over there and here. 61 00:04:19,140 --> 00:04:23,010 I'm going to say this is part and let's say my name is the thing. 62 00:04:23,010 --> 00:04:31,020 But very first, let's say I have to read this one so you can just copy from here and just paste where 63 00:04:31,020 --> 00:04:31,290 here. 64 00:04:31,290 --> 00:04:37,980 And if I'm going to execute it, it will return me this amazing data frame by writing just a single 65 00:04:37,980 --> 00:04:38,640 line of code. 66 00:04:38,650 --> 00:04:40,620 You can definitely get your data frame. 67 00:04:41,220 --> 00:04:42,630 I have to store it somewhere else. 68 00:04:42,630 --> 00:04:48,330 Let's say I'm going to say this is exactly my floor and that's it, just executed. 69 00:04:48,330 --> 00:04:54,780 And if, again, I'm going to call had or tell to get a preview how exactly my data looks like. 70 00:04:55,320 --> 00:04:59,850 This is exactly amazing stuff that you have got by calling. 71 00:05:00,590 --> 00:05:07,730 This function, so let's just see what exactly the power of function in a similar way, in a similar 72 00:05:07,730 --> 00:05:07,920 way. 73 00:05:07,940 --> 00:05:12,460 You can read each and every data set available over here. 74 00:05:12,680 --> 00:05:15,020 Let's say I have read some more data. 75 00:05:15,200 --> 00:05:18,370 That's the very first I have to call this function. 76 00:05:18,380 --> 00:05:23,660 And in this function, the first parameter that I have to parse, which is exactly my part that I have 77 00:05:23,660 --> 00:05:24,620 defined over here. 78 00:05:24,980 --> 00:05:27,910 And a second parameter, what exactly is my filename? 79 00:05:28,340 --> 00:05:33,310 Let's say I'm going to read this day, underscore why CSFI. 80 00:05:33,560 --> 00:05:37,320 So here I am going to say this is nothing but files of. 81 00:05:37,340 --> 00:05:42,310 And here I have to pass index of that file, which is exactly secon. 82 00:05:42,500 --> 00:05:45,620 Alexiev whatever it Willetton me, I store it. 83 00:05:45,620 --> 00:05:48,830 Alexei's data family name is nothing but Deerness. 84 00:05:48,830 --> 00:05:50,840 Cari's just executed. 85 00:05:50,870 --> 00:05:55,840 Now what you have to do, you have to just copy all the disturbed space to here. 86 00:05:56,120 --> 00:06:01,710 This time let's say you have to read this full Alesco or Kesby. 87 00:06:01,970 --> 00:06:03,110 So here you have to pass. 88 00:06:03,110 --> 00:06:08,440 The index has three and whatever data frame to lay it on me, I have to simply store. 89 00:06:08,450 --> 00:06:09,080 That's it. 90 00:06:09,290 --> 00:06:11,330 And I have to just execute it. 91 00:06:11,330 --> 00:06:16,500 Now what I have to do, I have to read this USSI country in the score. 92 00:06:16,580 --> 00:06:24,350 I start CSFI and this time I have to pass its index as four and whatever data frame it will return me, 93 00:06:24,350 --> 00:06:28,180 I'm going to name it as let's say, USSI on next call data. 94 00:06:28,190 --> 00:06:28,700 That's it. 95 00:06:28,700 --> 00:06:29,630 That's all up to you. 96 00:06:29,630 --> 00:06:32,590 Whatever name you want to assign after it. 97 00:06:32,600 --> 00:06:38,320 What I have to do next at this time I'm going to read this Koed and the score 19 this one. 98 00:06:38,540 --> 00:06:40,190 So its index is one. 99 00:06:40,400 --> 00:06:46,850 So yeah, I'm just going to pass its index as one and after it what I have to do, I have to provide 100 00:06:46,850 --> 00:06:48,860 some data for me here. 101 00:06:48,860 --> 00:06:54,260 I'm going to say data frame name is nothing, but probings underscore data. 102 00:06:54,290 --> 00:06:54,920 That's it. 103 00:06:54,920 --> 00:07:03,080 And if I'm going to execute all the stuff successfully executed over here, let's see if I'm going to 104 00:07:03,080 --> 00:07:05,720 call shape or not. 105 00:07:05,750 --> 00:07:13,000 You can easily see this data frame has that much number of rule and it has that much number of columns. 106 00:07:13,010 --> 00:07:14,480 So that's all about this. 107 00:07:14,900 --> 00:07:21,140 In all of our upcoming session, we are going to deep diving double analysis and we are going to analyze 108 00:07:21,140 --> 00:07:21,800 this data. 109 00:07:21,800 --> 00:07:27,220 And in all of our upcoming session, we are going to analyze this data up to a greater extent. 110 00:07:27,440 --> 00:07:28,760 So that's all about the session. 111 00:07:29,060 --> 00:07:30,050 Will love it very much. 112 00:07:30,330 --> 00:07:31,030 Thank you. 113 00:07:31,160 --> 00:07:32,210 Have a nice day. 114 00:07:32,360 --> 00:07:33,290 Keep learning. 115 00:07:33,290 --> 00:07:34,160 Keep growing. 116 00:07:34,580 --> 00:07:35,480 Keep practicing.