Saturday, October 11, 2025
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

Most Popular

Dominic
32350 POSTS0 COMMENTS
Milvus
87 POSTS0 COMMENTS
Nango Kala
6719 POSTS0 COMMENTS
Nicole Veronica
11880 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11941 POSTS0 COMMENTS
Shaida Kate Naidoo
6839 POSTS0 COMMENTS
Ted Musemwa
7101 POSTS0 COMMENTS
Thapelo Manthata
6794 POSTS0 COMMENTS
Umr Jansen
6794 POSTS0 COMMENTS