Get the column names of a python numpy ndarray Get the column names of a python numpy ndarray python python

Get the column names of a python numpy ndarray


Try:

myData.dtype.names

This will return a tuple of the field names.

In [10]: myData.dtype.namesOut[10]: ('TIME', 'FX', 'FY', 'FZ')