sctype2char(sctype)
If a scalar dtype, the corresponding string character is returned. If an object, sctype2char
tries to infer its scalar type and then return the corresponding string character.
If :None:None:`sctype`
is an object for which the type can not be inferred.
The string character corresponding to the scalar type.
Return the string representation of a scalar dtype.
>>> for sctype in [np.int32, np.double, np.complex_, np.string_, np.ndarray]:
... print(np.sctype2char(sctype)) l # may vary d D S O
>>> x = np.array([1., 2-1.j])
... np.sctype2char(x) 'D'
>>> np.sctype2char(list) 'O'See :
The following pages refer to to this document either explicitly or contain code examples using this.
numpy.sctype2char
numpy.obj2sctype
numpy.maximum_sctype
numpy.format_parser
numpy.issctype
numpy.mintypecode
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them