Index Ai Academy
Glossary · Phase 0 · Tools

Boolean mask

Also written: boolean masks

A list of True and False values, one per row or item, used to keep only the items marked True.

Try it now

Click a column to see the pandas that selects it. Then try Filter rows and Group and summarize: each shows the code and what it gives back. The water filter has no rating yet, which pandas shows as NaN.

Learn it properly

DataFrames with pandas · Load a table, pick rows and columns, and summarize groups in a few lines. About 40 minutes.

Start this free lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write