[Python] ndarray의 재구성 reshape
2024. 5. 20. 17:14ㆍ[💻Python] pearl's python 병아리 탈출기 🐣
a = np.arange(1, 13).reshape((3,4))
a
# array([[ 1, 2, 3, 4],
[ 5, 6, 7, 8],
[ 9, 10, 11, 12]])
a.sum()
#78
'[💻Python] pearl's python 병아리 탈출기 🐣' 카테고리의 다른 글
[Python] 특정 숫자 도달하기 (0) | 2024.05.20 |
---|---|
[Python] 다차원 배열의 축, insert() (0) | 2024.05.20 |
[Python]ndarray의 생성 (0) | 2024.05.20 |
[Python]matplotlib (0) | 2024.05.16 |
[Python]random 모듈 (0) | 2024.05.13 |