[MUSIC] This video talks about python programming for data mining. And we'll begin with how we can install python using anaconda distribution. So the first question that comes to our mind that which programming language to use for data mining. And in this course we are using python. The reasons that it is a very clear and simple language with high readability. It is platform independent. Next, it's a general purpose language, it can be used for a wide variety of tasks such as user application, gaming, web development or any other. Most importantly, it's free and open source. So you don't need to pay any license fees and it has a large community support. So in case you get stuck, you can ask questions. Next is why are we using anaconda distribution? So again, it is free and open source. Next, it comes bundled with about 600 packages which are pre-installed. So it's very easy to use. Those packages include NumPy, Matplotlib, Jupyter notebook, etc, which are most common packages used for programming. Also installing new packages and libraries is easy and hassle free. It has tools to easily collect data from sources using machine learning and AI which is a very helpful thing. Also it has good community support. So if you're stuck at some point that you are not able to install something, you can always ask what happened. Just a brief overview how we can install anaconda. So just visit the website, anaconda dot com slash products slash individuals. And in that you can select Python 3, although some people use Python 2 as well. But in this course we will be using Python 3 and click on the download button and when an .exe file downloads, then you can open it and run it. So this was the process for Windows, but for Mac and Linux it could be slightly different. Now, once you have installed it, then we will be using Jupyter notebook for writing and running python code. For this, we need to open anaconda prompt. So in your windows, in the search box, just write anaconda and a black box will come up. Next, you need to change the location of your working directory, where you want to save and run your code. So if you're just changing the directory, you can use the command cd and then the directory path. But if you need to change the partition, you don't need to use cd, you just write the name of the partition d: or e: and so on. Once you are at the required directory, you just type Jupyter notebook and then press enter. Now, a window will open in your default browser that could be Google Chrome or Firefox or Edge, then you can open an existing python file which has the extension .ipynb. Or you can create a new one by clicking on the new button and then selecting Python 3. So in this way we can run a python code using anaconda distribution and Jupyter notebook, next we will talk about installing and importing packages. So many packages come pre-installed with anaconda and we use import command to access and use them. For example, Pandas is a package which is used for reading and writing data from files. So we can use the command, import pandas, and then we can use all the functions and libraries within this package. Also we can assign an acronym for a package. So instead of writing pandas every time we can write import pandas as pd and then in the future we can replace pandas with pd and just write pd dot function name and so on. We can also import only a module from the package instead of the entire package using the dot command. So we can say from sklearn.neighbors, import KNeighborsClassifier. So this will import only that function. Next, we'll see if some package is not in there, then how we can install. The first thing that we need to do is check if the package is already installed or not. So let's say we want to install package numpy. Now when I write import numpy in the command prompt. If the package is not installed, I will get the error, "module not found" error. That is no module named numpy. That means that module is not available. Then to install it, anaconda has a very simple line command. So we can use conda install numpy. In any case, if you are installing any other package, the Conda repository has the list of the commands that you need to type. Once you write this and put enter then it will automatically generate all the data, download the data, and then install it. Sometimes it may ask for your permission where you need to say Yes. When the module has been installed and if we write import numpy then there will be no error issue. That means the numpy module is already installed and we have imported. In this video, we talked about how we can use anaconda to install python. Thank you. [MUSIC]