Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Array Creation in Numpy

>>> import numpy as np
>>> a = np.array([2, 3, 4])
>>> a
array([2, 3, 4])
>>> a.dtype
dtype('int64')
>>> b = np.array([1.2, 3.5, 5.1])
>>> b.dtype
dtype('float64')
Source by numpy.org #
 
PREVIOUS NEXT
Tagged: #Array #Creation #Numpy
ADD COMMENT
Topic
Name
9+9 =