By Column Name...

Setup

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

In[1]:=
Click for copyable input
Out[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]:=
Click for copyable input
Out[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]=

Extract multiple columns

Extract columns 1 and 3 from the dataset:

Out[8]=