Inspecting Properties

- -
arr.size Returns number of elements in arr
arr.shape Returns dimensions of arr (rows,columns)
arr.dtype Returns type of elements in arr
arr.astype(dtype) Convert arr elements to type dtype
arr.tolist() Convert arr to a Python list
np.info(np.eye) View documentation for np.eye
Comments