bundles / numpy latest / numpy / lib / _iotools / has_nested_fields
function
numpy.lib._iotools:has_nested_fields
source: build-install/usr/lib/python3.14/site-packages/numpy/lib/_iotools.py :60
Signature
def has_nested_fields ( ndtype ) Summary
Returns whether one or several fields of a dtype are nested.
Parameters
ndtype: dtypeData-type of a structured array.
Raises
: AttributeErrorIf
ndtypedoes not have anamesattribute.
Examples
import numpy as np dt = np.dtype([('name', 'S4'), ('x', float), ('y', float)]) np.lib._iotools.has_nested_fields(dt)✓
Aliases
-
numpy.lib._iotools.has_nested_fields