Lec 2, Python Fundamentals -I

257.36k views3376 WordsCopy TextShare
IIT Roorkee July 2018
Python installation guide, introduction to python, python fundamentals, data visualization
Video Transcript:
[Music] [Music] [Applause] [Music] [Applause] [Music] good morning students in the last class that was the introduction class we have seen the importance of data analytics and we have seen certain classification of data analytics this is my second lecture that is Python fundamentals because we are going to use this Python in this lecture I have three objectives one is I will tell you how to install Python second one I will see some fundamentals of the Python third one some data visualization in the data visualization I am going to give only theory in this class the next class we are going to use Python and we are going to take some sample data and we have to visualize the data using Python software as I told you the first one is how to install this Python there are five steps is there step 1 we are going to see in detail in coming slides in step 1 we are going to visit this website wwhen hakuna calm at the address bar of the web browser second one we are going to click on download button third one will download Python 3. 7 version for Windows operating system then we will double click that is a fourth step we will double click on file to run the application the fifth one will follow the instruction until the completion of installation process what are you done I have taken the screenshot of all these all the 5 steps while installing the laptop I'm going to show each steps in the form of screenshot the first one is type this w w dot anaconda calm at the address bar of the web browser second one is don't see you type date you can see this screen Sadie you see the this location you can see here this location there is a download option when you click that you see that the lips are also I have rounded there is a download option you don't know the third step is there are two version of Python Python 3. 7 and Python 2.
7 in this course we are going to use the latest version that is a Python 3. 7 in the fourth step double click on file to run the application it will get downloaded when you double click for example I have stored this this anaconda in a folder step five is just to keep on click Next you have to agree for their agreements terms and conditions next you just me recommended click Next then it is installed in C Drve you click Next then install installation process is started then installation is completed again click Next again click Next then click and finish ok now you have installed the anaconda so I will explain you how to open Jupiter notebook I will switch the screen yeah this is the screen initially there are you see I will see what is this some box it is showing in blue color sometimes it will show in green color that I will show you later so this is the Jupiter notebook look like the next one is why there are some more interfaces there for using Python there is a spider is there Jupiter is it but we prefer Jupiter for some reasons because it is edit code on the processor it is easy in documentation it is easy in demonstration and it is user friendly interface that was the reason we are using Jupiter it is not necessary if you already you are comfortable in some other interface you can continue with that see the in anaconda heat consists of two software oniisan is a python what is that is on the left hand side there another side the right hand side the jupiter applications these are combined together and kept in the Anaconda software package when you from the start when you type Jupiter you will you will get this screen then when you click launch you will get the this one so now from the start I am going to explain how to start this Python jupyter notebook go to type Jupiter and Jupiter notebook when you click it you will get this one suppose if you want to type in your and new over new Python 3 yeah here there is a Jupiter there is a it is coming untitled 2 there you can change the name you give the name as introduction to Python introduction okay you see there is a box appearing this is called a cell I have made it in the red color it is a cell it is it can be the cell can be accessed using Enter key you see sometime that box will look like a green color green color indicates it is an edit mode sometime the box will look like in blue color the blue color indicates it is a command mode see when you go to below the help there was a file name is called mark down there if you type something then you select mark down that is used for making documentation so it contains documentation here it takes not executed as a code it is only for our understanding purpose okay now about the Jupiter Knight notebook command mode allowed to edit notebook as a whole to close edit mode press Escape key execution can be done in three ways you can simultaneously we can press control enter so what will happen when you press control enter output field cannot be modified another way is to press shift enter output field is modified then there is a third way is there is a run button on the jupiter interface that you can directly you can click that then your code will get executed command line is written proceeding with hashtag symbol so when you want to make some understanding on the your program you can use the hash symbol so that will not be executed that you only for your understanding but there are about the Jupiter is notebook important shortcut keys when you press a that is used to create a cell above when you press B that is to create a cell below when you press D D for deleting cell when you press M that will made a say mark down cell when you press Y that is for coding cell for example when I'm entering be we'll go to the next one fundamentals of petha and you see loading here what we are going to see in coming slides loading a simple delimited data file counting how many rows and columns were loaded and determining which type of data was loaded then looking at different parts of data by subsetting rows and columns because these activities are more important because once we loaded a data that may have n number of cells n number of rows column and rows sometime we need to do some operation using only few rows are few cells you should know how from a big data file how to use only a particular row or how to use a particular column sometimes we can have a collection of rows also a collection of columns also for doing our specific operations this was the reference book which I am following for this course and the book name is pontus for everyone especially for this lecture it is the professor Daniel y hn is the author of this book now we are going to learn how to load a simple delimited data file this is the fundamental because before doing data analysis the first step is how to load the data into the Python for that but for that purpose we are going to import some basic libraries when respondus numpy another is matplotlib dot PI plot that has PLT so first we are going to import these three basic library then we are going to load the data the data name the data sources it is taken from www. elllo.
Copyright © 2025. Made with ♥ in London by YTScribe.com