학습일 : 2020.01.24

학습목표

numpy에서 자주 사용되는 함수들을 사용해보기

**import** numpy **as** np

numpy documentation

x = np.arange(15).reshape(3, 5)
y = np.random.rand(15).reshape(3, 5)
print(x)
print(y)
[[ 0  1  2  3  4]
 [ 5  6  7  8  9]
 [10 11 12 13 14]]
[[0.16269735 0.51511158 0.82598658 0.49526338 0.31572421]
 [0.81649003 0.27347824 0.80488677 0.67486308 0.77820564]
 [0.97344158 0.50008239 0.82083297 0.35562825 0.94751326]]

연산 함수

np.add(x, y)
np.subtract(x, y)
np.multiply(x, y)
np.divide(x, y)
x + y
x - y

통계 함수

print(y)