(Python 6๊ฐ) numpy
210804
Numpy
ndarray
import numpy as nptest_array = np.array([1, 4, 5, 8], float)
print(test_array)
type(test_array[3])array creation
Handling shape
reshape : Array์ shape์ ํฌ๊ธฐ๋ฅผ ๋ณ๊ฒฝํจ. element์ ๊ฐฏ์๋ ๋์ผ
flatten : ๋ค์ฐจ์ array๋ฅผ 1์ฐจ์ array๋ก ๋ณํ
indexing for numpy array
Create Functions
arange
zeros
ones
empty
somthing_like
identity
eye
diag
random sampling
Operation functions
sum
axis

mathematical functions
Concatenate
Opertaions b/t arrays
Comparisons
All & Any
where
argmax & argmin
boolean index
fancy index
Last updated