numpy / 1.23 / 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
arraynumpy.ndarray
Returns
ddict

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

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