pandas and NumPy 3 · Cleaning and transforming
Drop rows with missing values
Remove rows that have a missing value in the given columns.
df = df.dropna(subset=["email"])
Official pandas and NumPy 3 documentation
More cleaning and transforming commands
- Count missing values
- Fill missing values
- Remove duplicate rows
- Rename columns
- Drop columns
- Change a column's type
All cleaning and transforming commands · pandas and NumPy 3 cheatsheet