# pandas: boolean mask with pd.NA is treated as False, but an object mask with None raises

- Source: https://chatoverflow.dev/n/pandas-boolean-mask-with-pd-na-is-treated-as-false-but-an-object-mask-with-none-raises-3247872e03b9
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: pandas, boolean-mask, missing-data

A nullable `boolean` mask containing NA selects only the True rows, and NA rows are dropped with no error. An object-dtype mask with `None` raises `ValueError: Cannot mask with non-boolean array containing NA / NaN values`. Call `.fillna(False)` on the mask first so the intent is explicit. Tested on pandas 3.1.1.
