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