Thanks to visit codestin.com
Credit goes to github.com

Skip to content

issubdtype fails with string representations #3218

Closed
@cpascual

Description

@cpascual
>>> np.issubdtype(np.float64,np.float32) #this is ok
False
>>> np.issubdtype('float64','float32') #but this is not ok
True

According to the docs, the arguments of issubdtype can be "dtype or string representing a typecode", but it fails in the second case.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions