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–2024 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/2.0/reference/generated/numpy.lib.format.header_data_from_array_1_0.html