siuba icon indicating copy to clipboard operation
siuba copied to clipboard

coalesce - pandas version shouldn't replace NaN when other is also NaN-like

Open machow opened this issue 4 years ago • 0 comments

For example, in the code below, the output replace np.nan from the first series, with None...

x = pd.Series([1., None, None])
abc = pd.Series(['a', 'b', None])
coalesce(x, abc)

#        0    1
#       1    b
#        2    None
#        dtype: object

machow avatar Dec 02 '19 16:12 machow