Pandas isna()和isull()有什么区别? [英] Pandas isna() and isnull(), what is the difference?
本文介绍了Pandas isna()和isull()有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
熊猫同时具有isna()
和isnull()
.我通常使用isnull()
来检测丢失的值,并且从未遇到过这种情况,因此我不得不使用其他方法.
那么,什么时候使用isna()
?
Pandas has both isna()
and isnull()
. I usually use isnull()
to detect missing values and have never met the case so that I had to use other than that.
So, when to use isna()
?
推荐答案
isnull
是isna
的别名.从字面上看熊猫代码源:
isnull
is an alias for isna
. Literally in the code source of pandas:
isnull = isna
确实:
>>> pd.isnull
<function isna at 0x7fb4c5cefc80>
所以我建议使用isna
.
这篇关于Pandas isna()和isull()有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文