DarkMind Ltd logo

CodeNova

Python Cards Adventure

Pack 8 / Pandas and Matplotlib

filtering/selecting data

Lesson pack8-2

filtering/selecting data

not started

Hook

Pandas filtering is the fast version of the manual work you already know.

Pick one column with df['column_name'].

Filter rows using a condition inside square brackets.

This makes matching records easy to grab quickly.

Mini Challenge

Filter the DataFrame so only rows with price greater than 10 are shown.

Full lesson mode with normal detail.

Code Lab

Try it now

Output updates below

Output

Rows for Jay and Mia

Run the code, tweak it, then beat the challenge.