This is a pre-release version (latest). Go to latest (2.4.4)
{ } Raw JSON

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 : dtype

Data-type of a structured array.

Raises

: AttributeError

If ndtype does not have a names attribute.

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