Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Filtering by row
Extracting data by column
9. Select one column
Practice using filter() and select()
The pipe operator
Sorting rows
Summary

Instruction

We know how to extract rows; let's see how to select columns. We'll use something familiar to SQL programmers: the select() command. Like filter(), it takes the dataset name first and then the column name. If we wanted to see all the country names in our dataset, we'd put:

select(countries, country_name)

Exercise

Extract the continent column from countries.

Stuck? Here's a hint!

Type:

select(countries, continent)