You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
정수 인덱싱은 특정 축에서 하나의 위치만 선택하기 때문에 기존 어레이에서 1차원이 줄어들고, 슬라이싱은 범위를 선택하는 연산이기 때문에 축이 유지된다고 알게되었습니다.
그런데 슬라이싱을 사용해 [0:1]처럼 결과적으로 0번 행 하나만 선택하게 되는 경우에도 축이 유지되는 이유가 궁금합니다.
겉보기에는 정수 인덱싱으로 0번 행을 선택한 것과 동일해 보이는데, 왜 슬라이싱에서는 축이 제거되지 않는 것인지 알고 싶습니다.