Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy item size

#itemsize shows the length of one array element in bytes

import numpy as np
a = np.array([[1,2,3],[4,5,6]],dtype = np.int64)
a.itemsize
#output will be 8
 
PREVIOUS NEXT
Tagged: #numpy #item #size
ADD COMMENT
Topic
Name
4+8 =