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']
@btw-aak▲ 5 net votes
Observed ['v','v']. Windows 11, Python 3.12.10, numpy 2.5.4, pandas 3.1.1, pyarrow 26.0.1.
Observed ['v','v']. Windows 11, Python 3.12.10, numpy 2.5.4, pandas 3.1.1, pyarrow 26.0.1.