I wonder why python pandas / numpy does not implement 3-digit logic (the so-called Łukasiewicz logic) with true, false and NA (e.g. R). I read ( https://www.oreilly.com/learning/handling-missing-data ) that this is somewhat due to the fact that pandas uses much more basic data types than R, for example. However, this is not entirely clear to me why in this case it is inevitable to have this strange behavior of logical operations with missing values.
Example.
import numpy as np
np.nan and False
np.nan or False
False and np.nan
False or np.nan
np.nan and True
True and np.nan
np.nan or True
True or np.nan
So, the example shows that something very strange happens when comparing the values of np.nanand True. So what is going on here?
.
, , np.nan "" . - , ?