Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
One-step creation of a Dataset with named columns
ResourceFunction["DatasetWithHeaders"][data] creates a dataset from tabular data, using the first row as column names. | |
ResourceFunction["DatasetWithHeaders"][data,columnNames] creates a dataset of the data with column names as specified in the list columnNames. |
Have all data in one list, with the first row defining the column names:
In[1]:= |
Out[2]= |
Data and column names stored in separate lists:
In[3]:= |
Out[5]= |
This work is licensed under a Creative Commons Attribution 4.0 International License