Monday, December 30, 2024
Google search engine
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 Rubhabha-Wardslaus
Dominic Rubhabha-Wardslaushttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Recent Comments