WOLFRAM

Individual columns in a dataset can be extracted in order to be viewed or manipulated with Wolfram Language.

By Column Name...

Setup

Get a Dataset of animal weights from the Wolfram Data Repository:

In[1]:=1
Out[1]=1

Extract a column

Extract the Species column from the dataset:

  • The value returned is a Dataset object.

Extract a column as a List

To extract a column as a List, apply Normal:

Extract multiple columns

Extract both the Species and BodyWeight columns from the dataset:

By Column Index...

Setup

Get a Dataset of animal weights from the Wolfram Data Repository:

In[5]:=5
Out[5]=5

Extract a column

Extract the third column from the dataset:

  • The value returned is a Dataset object.

Extract a column as a List

To extract a column as a List, apply Normal:

Out[7]=7

Extract multiple columns

Extract columns 1 and 3 from the dataset:

Out[8]=8