首页 经验

pd.NA

时间: 2021-07-24 13:15:34

(部分内容来自网络,其真实性存疑,为了避免对您造成误导,请谨慎甄别。)


help(pd.NA)


Help on NAType in module pandas._libs.missing object:

class NAType(C_NAType)
 |  NAType(*args, **kwargs)
 |  
 |  NA ("not available") missing value indicator.
 |  
 |  .. warning::
 |  
 |     Experimental: the behaviour of NA can still change without warning.
 |  
 |  .. versionadded:: 1.0.0
 |  
 |  The NA singleton is a missing value indicator defined by pandas. It is
 |  used in certain new extension dtypes (currently the "string" dtype).
 |  
 |  Method resolution order:
 |      NAType
 |      C_NAType
 |      builtins.object
 |  
 

print(type(pd.NA))
print(pd.isnull(pd.NA))
print(pd.isna(pd.NA))

<class 'pandas._libs.missing.NAType'>
True
True
上一个 numpy中np.nan(pandas中NAN) 文章列表 下一个 Pandas入门详细教程

最新

工具

© 2019-至今 适观科技

沪ICP备17002269号