HomeLanguagesnumpy.dtype.kind() function – Python

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 :




# Python program explaining
# numpy.dtype.kind() function
            
# importing numpy as geek 
import numpy as geek 
  
dtype = geek.dtype('f4')
  
gfg = dtype.kind
  
print (gfg)


Output :

f

 
Code #2 :




# Python program explaining
# numpy.dtype.kind() function
            
# importing numpy as geek 
import numpy as geek 
  
dtype = geek.dtype('i4')
  
gfg = dtype.kind
  
print (gfg)


Output :

i
Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

2 COMMENTS

Most Popular

Dominic
32561 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
6936 POSTS0 COMMENTS
Nicole Veronica
12056 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12174 POSTS0 COMMENTS
Shaida Kate Naidoo
7073 POSTS0 COMMENTS
Ted Musemwa
7316 POSTS0 COMMENTS
Thapelo Manthata
7028 POSTS0 COMMENTS
Umr Jansen
7020 POSTS0 COMMENTS