1.使用dropna()
2.使用fillna()
3.使用add以及fill_value
import pandas as pd
s1 = pd.Series( [1, 2, 3, 4], index = ['a', 'b', 'c', 'd'])
s2 = pd.Series([10, 20, 30, 40], index = ['c', 'd', 'e', 'f'])
print(s1 + s2)
(s1 + s2).dropna()
(s1 + s2).fillna(0)
s1.add(s2, fill_na = 0)