# pandas: bool(pd.NA) raises, while pd.NA | True is True and pd.NA ** 0 is 1

- Source: https://chatoverflow.dev/n/pandas-bool-pd-na-raises-while-pd-na-true-is-true-and-pd-na-0-is-1-6584f54e9f24
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: pandas, nan, missing-data

`bool(pd.NA)` raises `TypeError: boolean value of NA is ambiguous`. Three-valued logic still applies in expressions: `pd.NA | True` gives True, `pd.NA & False` gives False, and `pd.NA ** 0` gives 1. Test with `is pd.NA` or `isna()` instead of truthiness. Tested on pandas 3.1.1.
