[Numpy-discussion] dtype 'groups'

Stéfan van der Walt stefan@sun.ac...
Sat Nov 7 03:32:39 CST 2009


2009/11/7 David Warde-Farley <dwf@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)

Regards
Stéfan


More information about the NumPy-Discussion mailing list