DataScience And Machine Learning 01 Class deepak 21st Feb 2019 9PM IST

Show video

This. Conference, will now be recorded. We. Are discussing, why, we, selected Python. As we saw Python. Is it, growing. In. Market. Okay most. Of the data scientists, are using Python. Because of n number, of reasons first. Thing is there. Are a rich library ok extensive, support of libraries, as. I told you you, need not do or write any code, from the scratch ok, there, are libraries just you, can input them and you can use them. Okay. I mean. It's a portable so, you can develop, in. Any any. Application, maybe in your publication or mobile. Application or, you. Can connect with anywhere maybe with, the database as well give. Um gaming, applications, you, can do anything ok, there. Are some, restrictions with different. Languages, ok. Python is portable, you can plug and play it's. High level you need not to code everything in detail, on your level ok, if something, in your mind just. Implement. That that's it, ok. It's. Open source and the Community Development. Open. Source. All. Or, 4/3 okay you need not to purchase. Anything. So. If something, in your mind you, can develop that ok. If you, feel like this, is a very user friendly ok, ok. Here. Users, are putting more efforts ok. You, can contribute further you can get a credit. Most. Of the people did. That so, we have just using them we're just plugging away we're. Not doing much ok. Presents. Of third more or two modules. Something. Like Facebook, Google, and most. Of the companies ok, top companies they, developed, some tools and they. You. Know, provided. As an open source so. Which we can use for. Video, cost and the best results. Living. Isn't support available if learning. It's very simple to learn we, will see or within, a week you will experience. That I. Support. Available if. You stuck with something if you have some. Error okay. If you're facing, some other just. Copy. Paste that in a Google you will get the answer okay, because. You, or some other person, might face the same issue okay. There, is a stack, overflow, there. Is a Korra, there are a number of blocks where, you will get, solution. As a sorry. Code and solution, you'll, get the husband. Okay. Productivity. And speed okay. If. You will see in a moment, okay. Now. Hope. You can see my screen. Just. One second. You. I got. A call from student, okay. So yeah, forget about these. Okay. This. Python country Python. You. Might have. Knowledge. In some, other language, okay let's take. Let's. See my console. The. I'll explain in detail what this is and everything, if. You have some knowledge in depth some different languages if I want to declare one variable okay, equal. To 10 okay, since, they equal to do I. Need. To specify in. The. Datatype and a. Equal. To 10 okay. And. If it is a string. Okay, might, be string, or character it depends on the language B. Equals. To some. Python. You. Can unit, you have to declare in advance okay even if you want to print or if you want, to run, this program you have, to compile. Okay. Then run. Okay. But, vital, in Python, you can just. That. Equal. To 10 you define the variable even, if you want to display. Just a that's. It you. Need not to specify the data rate, okay. You, need not to compile it okay. Because, of the treason this is called a reppin language. Read. Execute. Print, and look okay, this is one. Of the language we, have or we. Have a few more languages in but Python. Supports a ripple you need not to, write. Any. Explicit. Data type declaration.

Already. Will takes care of even, if you observe that's int okay, just. To see if we can see in detail again, okay. Or else if you want the type of that, type. Of a. Okay. You, will get integer. If. You want to dictate some. Same, thing okay Python. And, this, is a string. You, need skate, code this, is a beauty of this even, if you print that you're good a-ok. This. Much tuple so that it, will increase in improve, your productivity even, if you want if you have program. With the 50 lines or 100, lines or 500, lines you. Can execute the particular line that's it you need to comparative anything. Okay. Let's, take this is one of the IDE, okay. I have 10 number of lines okay. Equal. To 10 okay, be, equal, to 20. And C. Equal, to some string just okay again. That, depends if. You. Want to run only this particular line. If. You want to make this, prim. You. Want to show something or it's just. Default. You saying this. You're. Not able to see. But. Able to see you're not able and. I, would. That's, rest of the guys can you see this no. No we have to see only coming this visible only, Chrome yes. That's. My mistake. Now. Yes. Okay. So, in. Any. Language okay. If you want to declare it as. Integer. Unit. Is specify, this int equal. To 10, okay. Even. If you want to declare some swing, a string, be equal to 10 you need to specify the, data type in advance okay some, of the languages, even we. Need to specify even if it is a string you. Need to specify a length of that I need it you, know I, do, not know the exact that's but, then. Okay might be doing. 10. So that you can enter. Only. 10. Characters, okay. 11. You. Will get some error. But. In Python you, need. Not to define, the data type okay, equal. To 10. It. Should be a it. Gets equal. To 10 okay. Hit. The data type internally. It identified. Okay. Even. If you want to declare the same thing like you know. Python. See. It identified. This as a string. Okay. You need to specify anything, let's. Say you have something okay, 3/4, length this is the grid, with some. IDs okay, even. Especially with the wrapper languages. You. Have 100. Lines of code but, you want to execute only particular, line. Yes. I go to see see. That. Is nice do, you have to worry about the entire, program, compilation. And run. It's. Just a wrapping you. Can. Execute. And see the results then in there itself so that the product of productivity will improve. Okay. And. There. Are a number of, users. We will see one by one okay. Let's. Check, if. You want to declare, different. One variable we saw defining. A equal, to n equal. To pythons, equal data so, it's, taken care of. The. Data type internally, so you need not to worry okay. So, how, will install installation, partner. There. Is a Python. Okay. Right on official site right. On dot orc. From. Here you can download three. Place version okay. 3x orderlies. Okay. You. Can download this even they'll add two versions to point to point something and three, point something I prefer. Two point. One. Five previous. For some but not sure about it. So. I prefer, three. Because. The. Syntax is a little different, and. Most. Of the packages the advanced, packages. Supports, item. Three only okay. So. I recommend. To install. Python. Orc and after. The Trinity install packages. Which. Is required. But. If. You install, anaconda. It. Comes, with Python, and most, of the packages. Okay. You. Need not to execute install. Anything manually. Okay. Most of the packages have come down but anaconda. Just. You can google. With anaconda. Download. Okay. No no you will get again. There are some two versions one with three, dot X and, 2. Dot X select, three dot X and, executed. Its exe, file I'll. Provide links in, the. Material. Okay. Try. To install, anaconda, okay. Python also you can install but each. And every time you need to install the packages manually, I recommend. To install anaconda. So that we can focus on the subject not only, the. Intro. Okay. Now. Information, part is done, just. Even, if he finishes we. Can discuss okay, that's not a problem, now. It's. A little bit Python okay, little bit very scratched. Now. There. Are two modes to. Execution, moves. Okay. First. One is command. Line. Okay. Command them how, Python. Command. Line comes okay, this, is the IDE you can see the spider is a IDE. But. Okay. I'm sharing, my screen even.

If You have any choice please read me, one. Is commanding, what is the command line so, I turn, ya. Plane. Fighter it. Comes like this okay. Just. Black cream there, is no extra whatever. We did we can do the same thing here equal to 10 okay. It. Gives the same, what. Are you seeing the black one is the Python concern, even. Python. IDE also available. Okay. Just to write clean nothing more than that. Okay. This. Is a one way so we can X, good on. And. Second. Thing is. Second. Thing is, script. Mode are. Waiting. What is saying. Is just. Print. I'm just. Give some demo, print. Welcome. To, data. Source. I'm, searing it okay. I'm. Stepping. Put, some name names. Of the legging up. 9. To. 10. Okay. 9 to 10 okay but if only take that viewing. I. Want. To see I want to execute that yeah. So what Waterloo, is. Fine. Okay. This, is my car. Or. Else okay. At least I'm going. Okay. Python. I'm. Giving, the path from, there I need to execute okay. Okay I'm, just doing the file name what, the file name. Nine. Welcome. To this program, okay. So, these are the two ways first one is on. Command. Prompt we, can execute one, okay. Second, thing is in, a batch okay. Even, in the inner production, we do the same thing okay, we, just use. The. Python command and the corresponding, file, name okay. The file might contain, another, file as well that, is okay but, this one of the way. There. Are two ways to execute. Any Python so, we work with this and when we implement. The. End to end we go for the production. Mode, okay. Now. We. Will see some of the. Basics. Okay if I want to declare something a equal to 10 or it can take some other number might. Be 6. Yeah. And. One, more thing so once you install. Anaconda. Let, me know I will tell you some of the keys shortcut, keys ok. Equal. To it's adequate. If. You want to declare multiple things, okay multiple means a comma. B, comma, C is. Equal, to sum 0, then. We are initializing, something. Ok. I want, a and B and C is 0 I can do this. Ok. Int. Object is not a trouble. Yeah. I got. This. Or. Even. What is that a comma, B comma C equal to 0 then, do it. Ok, I'll give one simply, have already 0. Another. One is the change to one even if you want to instil eyes with the sum. Of zero. Zeros. Okay. All. Elizabeth's, Monty and. If you have something different okay something, a comma B comma C equal, to. Some. Different values. Different. Values in the sense oh my. God a. Comma. B comma C, is. Equal, to something, five. Comma. Then it also can be different okay I mean.

6.0. Comma. So, string. But. See. Here nobody's but changed. So. This is all three. Values. Got changed so, this, is the way how we declare. Variables. Okay, initialize. The variables on that's, right. And. If, you want to print something print. Okay. Print, a works. Okay. Or, else even if you want to print something. With. This thing okay, e. A. Value. East. There. Are some more variations, we will discuss that okay. We got a value is fine there. Are some more variations we will discuss that do, not worry. Okay. And. Even. Some of the like, rest of the languages they have very. Basic things like if. Okay. If. We. Have equal, to find it a equal, to five. N. Equal to five do, something. Is. Fine. Okay. Now. If. I'm starting, block, okay. In another languages, okay, even if you take Java or something. You. Need to spend possibly. You. Need to specify. Okay. From there this. Block. Is beginning, but it might be something like this. So. This is one block, okay. Instead, of that if we have another block you need to specify another. Braces-girl. It, is something. Maybe even if you have something you. Have to specify this but. In Python, it. Works, with, indentation. Okay. In addition means for space after. This if, okay. Just. Leave the colon and press Enter it automatically takes care of that. Okay. So. This is one block even instead, it's have another block. If. We. Double, equals to. Speaks. Okay. If you want to take that. :. Yes enter it. Automatically, view the indentation. Really. Have to worry okay. Indentation. Means, one block. Okay. Now. If condition, coming. To get cut if condition just. Execute, this. Is. 12 because I have a value is fine. If you want to inspect. Another if if. Be, or. Else or, a leg see. Is. Double. Equal to some, string. Python. Print. See, has a. Special. Okay. If. Now. If. You want to check further. Condition. Okay. If. Equal to 5 then. Do this. Else. If okay. All right we'll get you start with the best else. If. It is not. Okay. I'm. Getting, this, else. Print. It. Is. Not. Fine, now. I'm making, a s. Some. Then. Now. Is. Not fair because I just, a bit our I. Updated. A with 10 now, it checks for this, equal. To 5 which. Is not true so it is good the L spot. Now. If, I want to check for some another thing okay. If. This. Is not true, by report this execute, the else block Institute's by default, okay, if. Condition. Is not met but. If you want to check for, another. If condition, okay, l. If. L. Equals. To. 10. Then. Print. A. Is. 10. If. These. Two are not, correct, okay, if, do these, two are not correct then by default.

This. Step next okay. Now. See. Hey. Okay. It, is first, it checks for this if not, then it checks for this even. If you correct a number of statements like this if, nothing satisfied. Then. It check, it. Execute. The else part. Okay. The important thing, is you need to check or take. Care of this indentation, okay. Sometimes. Even. If you press some problem just. Here. Just press Enter, it really gives that okay, do, not. Take. It but. Instead you can use to tab. Okay. This. Is about if, condition, okay. Even. Something. Like. While. Condition, for loop sorry while loop for loop these. Are the same okay. To. The languages. While. Okay. Wine, is. Greater. Than 10. Okay. If. This is the one is greater than 10 okay. Print. A. And. You. Need to increase it small increments, as well. Means. A is, equals. To a, plus. One, or, this, also same equal, to, a. Plus. Equal, to. Equal. To 1 both, are same for now we. Will use, first. One, okay. What. Is my a value a, is. Equals to 0, I mention as in zero what, did, it. Take, equal, to 0. Fine, it. Comes to deep. Condition, condition. It is. Less, than 10 condition is true so, it prints a and it. Into this this even. See. A. New. To anyone if you have any doubts just unmade yourself and you can ask. Okay. So. This. Is a while loop it, executes. Until. The. Condition, is true or sorry false if, it is true it executes then if, it is not then, it will come out of that this. Is the while loop. Okay. And. For, loop. Okay. We use for, loop very. Often. Instead. You. Know. Very. Often okay loop, is it very there but still we used that, okay. Let's. Take you have some variables, okay something like array or some somewhere I have. Variables, so they make one. To. The, okay. I want to print all. Okay. I want, to print all then, what I do is. What. I do is for. I. In. This, list okay, I want, to put all right. All. Again. Block starts, so cool, enter. Print. I. Okay. It, first, take this okay. It takes good a block not only this. Even if you have some, another. Team like a male, and candy, I. Okay. Confusion, that's fine or, else I'm. Disappointing. Okay. My, intention is to talk there. Can be any number of shipments, okay. It takes one and it excludes all the statements. Okay. Forty. Look works with. This this iterable, okay. Italy, I can. Iterate one by one okay. But. My. Intention, is to okay, let's take if it is fine that's fine but, if I have many okay. Alright. I have thousand, okay. With. From this thousand, I'm looking. For one number might, be. If. The number is I is, w, equals to. Mystify. Okay. Then only print. I'll. Do some action okay. Some. Action. Okay. Or a print only even numbers or odd numbers, the, current those kind of problems as well. Okay. If. It is five then, do some action, okay. Then. If not, do, not do anything so. Might be. Okay. If. Fine they never do that okay. Then. It is fine some action that's, it only once, it executed, because we, have only five only. Ones. The. Key point here is loops. With, conditions. Okay. We can keep conditions, as well. Okay. Also. Even we can write you know print. Only even numbers odd numbers, that's fine okay. But. What, I believe, after. This five also, it. Executed. For, it checked for all these, now. My requirement, is let, us change. Okay. Some. Action of another form. Then. Print. I. Dreamed. I so. I just wanted to check after, five, it executed, or not. Okay. Some, action it executed. But. I want to, stop this once. I found, something, okay I'm searching for something when. I found this just stop it okay. Then. What I do is I. Break. It, break. The loop. Okay. Even, not even this kind at five also not even this, so. I'm breaking, the loop. Break. Breaks, the loop when. It encounters, it it breaks, the loop that's it, okay. My. Intention, is. Ladies. Is now I. Do. Not want to break. Completely. But, if, something, is found I do not want to bring them even when it is five I do, not want to do anything for the rest I want to do, okay. Continue. So. My requirement, is if. It is the five do not do anything for, the rest to do something okay. See. Here it. Is if not print fine. Rest. Imprinted. This. Is the condition, break. Okay. Break, me, it breaks the loop continue. Means. Continuum. Is it, based breaks the particle, iteration, okay, particular, iteration only it breaks. Okay. There. Are few, more. Use. Cases especially, with fun, okay, for loop. There. Are few more variations. As then we, will see in detail. Okay. I will see it didn't so. Since. It's a very first class I'm just covering. Basics. Declaration. Of the variable and if conditions.

2019-02-22

Show video