Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

data types in numpy array

import numpy as np
>>> x = np.float32(1.0)
>>> x
1.0
>>> y = np.int_([1,2,4])
>>> y
array([1, 2, 4])
>>> z = np.arange(3, dtype=np.uint8)
>>> z
array([0, 1, 2], dtype=uint8)
Source by numpy.org #
 
PREVIOUS NEXT
Tagged: #data #types #numpy #array
ADD COMMENT
Topic
Name
8+1 =