numpy / 1.22.0 / reference / generated / numpy.lib.format.header_data_from_array_1_0.html /

numpy.lib.format.header_data_from_array_1_0

lib.format. header_data_from_array_1_0 ( array ) [source]

Get the dictionary of header metadata from a numpy.ndarray.

Parameters
array numpy.ndarray
Returns
d dict

This has the appropriate entries for writing its string representation to the header of the file.

© 2005–2021 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/1.22/reference/generated/numpy.lib.format.header_data_from_array_1_0.html