bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / typename
function
numpy:typename
source: /dev/numpy/build-install/usr/lib/python3.14/site-packages/numpy/lib/_type_check_impl.py :585
Signature
def typename ( char ) Summary
Return a description for the given data type code.
Parameters
char: strData type code.
Returns
out: strDescription of the input data type code.
Examples
import numpy as np typechars = ['S1', '?', 'B', 'D', 'G', 'F', 'I', 'H', 'L', 'O', 'Q', 'S', 'U', 'V', 'b', 'd', 'g', 'f', 'i', 'h', 'l', 'q'] for typechar in typechars: print(typechar, ' : ', np.typename(typechar))✓
See also
- dtype
Aliases
-
numpy.typename