I was wondering why the result of
pandas.Series([numpy.nan]).astype("bool")
is True?
Probably because np.nan objects are themselves truthy:
>>> bool(np.nan)
True
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With