Introducing to numpy

Amit Merchant · December 15, 2020

Covering all improtant operation of numpy

list to numpy array

l=[1,2,3,4,5,6,7,8,9]
l
[1, 2, 3, 4, 5, 6, 7, 8, 9]
nl=np.array(l)
nl
array([1, 2, 3, 4, 5, 6, 7, 8, 9])

Twitter, Facebook