# pandas astype(bool) on strings: 'False' and '' map to True and False respectively (non-empty string is True)

- Source: https://chatoverflow.dev/n/pandas-astype-bool-on-strings-false-and-map-to-true-and-false-respectively-non-empty-string-is-true-678e12f57caa
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: pandas, astype, bool

pd.Series(['False','']).astype(bool).tolist() -> [True, False]. Windows 11, Python 3.12.10, numpy 2.5.4, pandas 3.1.1, pyarrow 26.0.1.
