Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
69 views

Basics of Python For Data Machine Learning

This document provides an introduction to Python for machine learning. It outlines why Python is a popular tool for data analysis due to its prevalence and versatility. It then discusses the differences between Python versions 2.7 and 3.7 and how to install Python and Jupyter Notebook on your system. The document demonstrates how to install common Python libraries like NumPy and Pandas. Finally, it provides examples of simple Python programs for adding numbers and building a basic calculator to illustrate writing code.

Uploaded by

Parth Agarwal
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views

Basics of Python For Data Machine Learning

This document provides an introduction to Python for machine learning. It outlines why Python is a popular tool for data analysis due to its prevalence and versatility. It then discusses the differences between Python versions 2.7 and 3.7 and how to install Python and Jupyter Notebook on your system. The document demonstrates how to install common Python libraries like NumPy and Pandas. Finally, it provides examples of simple Python programs for adding numbers and building a basic calculator to illustrate writing code.

Uploaded by

Parth Agarwal
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 32

BASICS OF PYTHON FOR

MACHINE LEARNING
HARSH DALAL
MODULE FLOW

• Why learn python for data analysis


• Python 3.7 Vs 2.7
• How to install Python?
• How to install JNB with Library
• Running a few simple programs in python.
• Summary

22
WHY LEARN PYTHON FOR DATA ANALYSIS

• Popularity:
Python is one of the most prevalent tools for data analysis. In
a survey carried out by Analytics India Magazine, it was found that 44% of
data scientists prefer Python, it is ahead of SQL and SAS, and behind the
only R.

• General Purpose Programming:


Though there are other popular computing tools utilised for
analysing data (e.g. R, SAS), Python is the only reliable general-purpose
programming language

33
44
55
66
PYTHON 3.7 VS 2.7

77
88
99
10
10
11
11
12
12
13
13
14
14
15
15
HOW TO DOWNLOAD AND INSTALL PYTHON
• Step 1: Download the Python 3 Installer
Open a browser window and navigate to the Download page for
Windows at python.org.

Underneath the heading at the top that says Python Releases for
Windows, click on the link for the Latest Python 3 Release - Python 3.x.x.
(As of this writing, the latest is Python 3.7.4.)
Scroll to the bottom and select either Windows x86-64 executable
installer for 64-bit or Windows x86 executable installer for 32-bit.

16
16
17
17
• Step 2: Run the Installer
Once you have chosen and downloaded an installer, simply run it by
double-clicking on the downloaded file. A dialog should appear that looks
something like this:

18
18
• Then just click Install Now. That should be all there is
to it. A few minutes later you should have a working
Python 3 installation on your system.

19
19
HOW TO INSTALL JUPYTER NOTEBOOK

• CODE:
“pip install jupyter notebook”

Its takes 7 to 8 Minutes


• For Launching Jupyter notebook
Type:
jupyter notebook

20
20
HOW TO INSTALL LIBRARY IN PYTHON

• For installing Numpy

• CODE:

“pip install numpy”


OR
“pip3 install numpy”

21
21
OTHER IMPORTANT LIBRARY TO BE DOWNLOAD
1. Pandas
2. Matplotlib
3. Seaborn
4. Sklearn
5. Scipy
Note : For finding out command for library installation
Check out : pypi.org

22
22
Running A Few
Simple
Programs In
Python
With Jupyter notebook

23
ADD TWO NUMBERS

• Source Code:

24
24
ADD TWO NUMBERS PROVIDED BY THE USER

• Source Code:

25
25
YOUR TURN

• Print Hello world!

26
26
SIMPLE CALCULATOR BY MAKING FUNCTIONS

27
27
CONTINUE…

28
28
YOU TURN

• Create one example based on till now


learning.

29
29
SUMMARY
• Understand The Necessary Of Python In machine
learning.

• Learn The Difference Between Python 2.7 Vs. 3.7

• Hands On Experience With Installation Of Python


Library.

• Hands On Practice With Simple Python Problems.

30
31
THANK YOU
Happy Learning

32

You might also like