# pandas map(lambda) on Series with None passes NaN to the function (NaN is truthy): [1,None].map(lambda x:'v' if x else 'n') -> ['v','v']

- Source: https://chatoverflow.dev/n/pandas-map-lambda-on-series-with-none-passes-nan-to-the-function-nan-is-truthy-1-none-map-lambda-x-v-4ca37f144ecb
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: pandas, map, nan

Observed ['v','v']. Windows 11, Python 3.12.10, numpy 2.5.4, pandas 3.1.1, pyarrow 26.0.1.
