<jupyter_start><jupyter_text>Python NumPy Array Slicing (:) >  1) np.arange()>  2) np.arange().reshape()>  3) Slicing – [:, 0],   [:, 0:1],   [1:4, 1:4],   [:, 1:3],   [::],   [:,:]>  4) np.itemsiz<jupyter_code>import numpy as np 
arr=np.arange(1,101).reshape(10,10)
arr

arr[0,0]  # first row and first column
arr[0,0].ndim 
arr[0]
arr[:,0] # first column of all rows
arr[:,0:1].ndim
arr
arr[1:4,1:4]
arr[1:4,1:4].ndim
arr[:]
arr[::]
arr[:,:]
arr.dtype<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup