KDT/TIL
[수정하기] 221216 (금) 파이썬 넘파이 판다스
imname1am
2022. 12. 16. 11:04
반응형
목차
NUMPY
⊚ np.array()
⊚ .shape
⊚ np.zeros() / np.full() / np.eye() ➡ 정방행렬
NumPy 사용하기 : identity(), eye() 함수
NumPy 사용하기 : identity(), eye() 함수 123456789101112131415161718192021>>> import numpy as np>>> D = np.identity(3)>>> Darray([[1., 0., 0.], [0., 1., 0.], [0., 0., 1.]])>>> E1 = np.eye(3, dtype=int)>>> E1array([[1, 0, 0], [0, 1, 0], [0, 0, 1]])>>>
yeowool0217.tistory.com
⊚ np.array()
⊚ np.add(), np.subtract(), np.multiply(), np.divide (+-*/)
⊚ axis = 0, axis = 1
➡axis=0 이면, 컬럼끼리 더함
➡axis=1 이면, 행끼리 더함
PANDAS
⊚
반응형