This is a pre-release version (2.5.0.dev0+git20251130.2de293a). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / lib / format / drop_metadata

function

numpy.lib.format:drop_metadata

source: build-install/usr/lib/python3.14/site-packages/numpy/lib/_utils_impl.py :724

Signature

def   drop_metadata ( dtype / )

Summary

Returns the dtype unchanged if it contained no metadata or a copy of the dtype if it (or any of its structure dtypes) contained metadata.

Extended Summary

This utility is used by np.save and np.savez to drop metadata before saving.

Aliases

  • numpy.lib._format_impl.drop_metadata