numpy array astype code example
Example 1: np as type
>>> x.astype(int)
array([1, 2, 2])
Example 2: astype numpy
ndarray.astype(dtype, order='K', casting='unsafe', subok=True, copy=True)
>>> x.astype(int)
array([1, 2, 2])
ndarray.astype(dtype, order='K', casting='unsafe', subok=True, copy=True)