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