numpy.issctype(rep)
[source]
Determines whether the given object represents a scalar data-type.
Parameters: |
|
---|---|
Returns: |
|
See also
>>> np.issctype(np.int32) True >>> np.issctype(list) False >>> np.issctype(1.1) False
Strings are also a scalar type:
>>> np.issctype(np.dtype('str')) True
© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.17.0/reference/generated/numpy.issctype.html