[Numpy-discussion] dtype 'groups'

Stéfan van der Walt stefan at sun.ac.za
Sat Nov 7 04:32:39 EST 2009

2009/11/7 David Warde-Farley <dwf at cs.toronto.edu>:
> Just to confirm my suspicions, what's the preferred way to check if a
> dtype is...

Not sure what the "official" way is, but this method works well:

> a) an integer type vs. a floating point type vs. a string type? I'm
> assuming dt.kind.

np.issubdtype(dt, float)


More information about the NumPy-Discussion mailing list