Python | numpy.issctype() function (original) (raw)

Last Updated : 12 Mar, 2019

numpy.issctype() function is used to determine whether the given object represents a scalar data-type.If the given object represents a scalar data-type it returns true, otherwise it returns false.

Syntax : numpy.issctype(rep)

Parameters :
rep : any input.

Return : [bool] Boolean result of check whether rep is a scalar dtype.

Code #1 :

import numpy as geek

rep = geek.int64

out_val = geek.issctype(rep)

print ( "Are integers scalar: " , out_val)

Output :

Are integers scalar: True

Code #2 :

import numpy as geek

rep = [ 1 , 4 , 7 ]

out_val = geek.issctype(rep)

print ( "Is list scalar: " , out_val)

Output :

Is list scalar: False

Similar Reads