python – Pandas isna()和isnull(),有什么区别?

前端之家收集整理的这篇文章主要介绍了python – Pandas isna()和isnull(),有什么区别?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
熊猫有isna()和isnull().我通常使用isnull()来检测缺失值并且从未遇到过这种情况,因此我不得不使用其他方法.
那么,何时使用isna()?

解决方法

isnull是isna的别名.直译在 code source of pandas: @H_502_7@isnull = isna

确实:

@H_502_7@>>> pd.isnull <function isna at 0x7fb4c5cefc80>

所以我建议使用isna.

原文链接:https://www.f2er.com/python/185664.html

猜你在找的Python相关文章