how to change array data type in python code example Example: change type of array python arr=arr.astype('uint8')