Professional Documents
Culture Documents
Python
The Complete Course
TELCOMA
Copyright © TELCOMA. All Rights Reserved
Module 2
Data Scientist’s Toolbox
6. Data Visualization
Popular packages
Pandas, numpy, matplotlib, scipy, statsmodel, scikit-learn
Few Differences
Graphical Installer
• Download the graphical installer
• Double-click the downloaded .pkg file and
What platforms are supported? follow the installation wizard
- Windows, Linux and Mac
(32 bit and 64 bit versions) Command Line Installer
• Download the command-line installer
• In your terminal window type one of the below
and follow the instructions: bash <Anaconda2-
x.x.x-MacOSX-x86_64.sh>
Numpy 0 1 2
NumPy’s main object is the homogeneous 0 12 13 35
multidimensional array. It has an associated fast 1 14 16 56
math functions that operate on it. It also provides 2 15 19 77
simple routines for linear algebra and fft and 3 17 22 98
sophisticated random-number generation. 4 18 25 119
5 20 28 140
E.g.. 6 21 31 161
import numpy as np 7 23 34 182
a = np.arange(15).reshape(3, 5) 8 24 37 203
a 9 26 40 224
10 27 43 245
array([[ 0, 1, 2, 3, 4],
[ 5, 6, 7, 8, 9],
[10, 11, 12, 13, 14]])
Functions
Function
A function is a block of organized, reusable code
that is used to perform a single, related action.
Defining a function
Eg.