You are viewing an older version (2.4.3). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.4.3 / numpy / _core / _internal / _promote_fields

function

numpy._core._internal:_promote_fields

source: /numpy/_core/_internal.py :410

Signature

def   _promote_fields ( dt1 dt2 )

Summary

Perform type promotion for two structured dtypes.

Parameters

dt1 : structured dtype

First dtype.

dt2 : structured dtype

Second dtype.

Returns

out : dtype

The promoted dtype

Notes

If one of the inputs is aligned, the result will be. The titles of both descriptors must match (point to the same field).

Aliases

  • numpy._core._internal._promote_fields