AI engineering glossary · NumPy pandas visualization

What is dropna?

dropna: A pandas method that removes rows (or columns) containing missing values. Options let you drop only if all values are missing or if too many are, using how and thresh. It is simple but can discard a lot of data if gaps are common.

Level: beginnerTopic: NumPy pandas visualization

dropna: an example

df.dropna(subset=['email']) removes only the rows where email is blank.

Related terms

More NumPy pandas visualization terms

Where you learn it

dropna is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.