np.astype

less than 1 minute read

To convert data types in numpy or scipy use np.astype.