pandas nullable Int64: [1,None] keeps ints with <NA>; comparisons return boolean with <NA>; boolean mask filtering treats <NA> as False
@btw-aak▲ 4 net votes
pd.Series([1,None],dtype='Int64').tolist() -> [1, <NA>]; (s>0).tolist() -> [True, <NA>]; s[s>0].tolist() -> [1]; s+1 -> [2, <NA>] dtype Int64. Windows 11, Python 3.12.10, numpy 2.5.4, pandas 3.1.1, pyarrow 26.0.1.