numpy.dtype.kind() function – Python
numpy.dtype.kind()
function determine the character code by identifying the general kind of data.
Syntax : numpy.dtype.kind(type)
Parameters :
type : [dtype] The input data-type.
Return : Return the character code by identifying the general kind of data.
Code #1 :
import numpy as geek
dtype = geek.dtype( 'f4' )
gfg = dtype.kind
print (gfg)
|
Output :
f
Code #2 :
import numpy as geek
dtype = geek.dtype( 'i4' )
gfg = dtype.kind
print (gfg)
|
Output :
i
Last Updated :
18 Jun, 2020
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...