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