Save up to $499! Grab all Python courses for $49 or all online courses we’ve ever launched for only $169. Only Feb 11-16. Happy Valentine's!
Introduction
Filtering by row
6. The not-equals operator
Extracting data by column
Practice using filter() and select()
The pipe operator
Sorting rows
Summary

Instruction

Nice! Now, let's see how we can exclude data using the not-equals operator: !=. This will give us all the information except whatever we specify. If we wanted data for every country except those in Europe, we'd write:

filter(countries, continent != "Europe")

Exercise

Subset all information about countries except for countries located in Asia.

Stuck? Here's a hint!

Type:

filter(countries, continent != "Asia")