Filtering Data

This lesson focuses on how to filter data with Pandas.

We'll cover the following

Filtering

Filtering is the process of extracting a subset of your data based on some condition or constraint. These conditions can be on the values that the data items take. We filter data when we wish to look at a smaller part of the whole data. For instance, we may want:

  • the data in a particular period of the year
  • the data of the highest selling items
  • the data for a specific group of items
  • to remove extra or useless data

Data filtering is done on almost every dataset before doing any analysis. Let’s look at some examples using our California Housing Dataset.

Get hands-on with 1200+ tech skills courses.