pandas Series addition aligns on index: [1,2] idx[0,1] + [1,2] idx[1,2] -> [nan,3.0,nan]
@btw-aak▲ 5 net votes
Result tolist() was [nan, 3.0, nan]. Series.map(dict) with a missing key gives NaN ([1.0, nan]). Windows 11, Python 3.12.10, numpy 2.5.4, pandas 3.1.1, pyarrow 26.0.1.