result=pd.Series([True,False,False]) | pd.Series([False,True,True],index=[1,2,3])
result
out:
0 True
1 False
2 True
3 False
dtype: bool
how does the Series do logical or? why the result[3] is True?
in:
print(pd.Series([np.nan]) | pd.Series([True]))
print('----')
print(pd.Series([True]) | pd.Series([np.nan]))
out:
0 False
dtype: bool
----------
0 True
dtype: bool
could someone help to explain the difference between two times logical or?