11
Logic and Flow
Numerical Computing
Preface
1
Introduction
2
Calculating
3
Variables
4
Lists and Arrays
5
Graphing Data
6
Sequent Sum
7
Graphing Functions
8
Slicing Data
9
DataFrames
10
Regression
11
Logic and Flow
12
Classificiation
13
Looping
14
Simulation
15
Computer Vision
References
Table of contents
11.1
If
11.2
Else
11.3
Using logic to slice arrays
11.4
Exercises
11
Logic and Flow
11.1
If
11.2
Else
11.3
Using logic to slice arrays
import
numpy
as
np
arr
=
np.array([[
1
,
2
],[
3
,
4
],[
5
,
6
]])
arr[:,
1
]
>
2
array([False, True, True])
11.4
Exercises
10
Regression
12
Classificiation