Basics of Python For Data Machine Learning
Basics of Python For Data Machine Learning
MACHINE LEARNING
HARSH DALAL
MODULE FLOW
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.
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”
20
20
HOW TO INSTALL LIBRARY IN PYTHON
• CODE:
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
26
26
SIMPLE CALCULATOR BY MAKING FUNCTIONS
27
27
CONTINUE…
28
28
YOU TURN
29
29
SUMMARY
• Understand The Necessary Of Python In machine
learning.
30
31
THANK YOU
Happy Learning
32