np.ndim -> 차원
np.shape -> row, column 확인
np.size -> 개수
.dtype -> 데이터 타입확인 ex) int64, float64
-> 데이터 타입 명시적으로 설정 가능
int8_np = np.array([1, 2, 3], dtype=np.int8)
: 데이터 타입 int8이 됨
.itemsize ->넘파이 array에 많은 값이 있을 떄 값들이 각각 몇 바이트인지 숫자로 표현, 원소1개 용량 표현
.nbytes -> 넘파이 array의 원소들이 차지하는 용량을 담고 있는 데이터
-> size*itemsize 와 같음
'Python > Numpy' 카테고리의 다른 글
np.reshape, np.resize 차이점2, flatten, ravel, copy, view (0) | 2021.03.30 |
---|---|
np.reshape, np.resize 차이점 (0) | 2021.03.30 |
linspace와 arange 차이점, random.randn, random.normal, random.uniform, random.randint (0) | 2021.03.29 |