python - Why is the result of pandas.Series([numpy.nan]).astype("bool") is True? -


i wondering why result of

pandas.series([numpy.nan]).astype("bool")

is true?

probably because np.nan objects truthy:

>>> bool(np.nan) true 

Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -