# Dropping or Filling Missing Values

Once you know where a table's gaps are, dropna removes rows (all of them with any gap, or only those missing the columns you name in subset), fillna puts a value, a median or 'Unknown' in each gap, and a flag column records which values were filled so none is passed off as measured.

![Cheat sheet: Dropping or Filling Missing Values](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/cdaf7b193673489cb2e299f06fa08561.webp)

- Category: Data Analysis
- Level: Apprentice
- Tags: dropna(), fillna(), Imputation, Median, python
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/pandas-missing-values-handling-cheat-sheet
