pandas.Int64Dtype #
- 熊猫类 。Int64Dtype [来源] #
int64 整数数据的 ExtensionDtype。
用作
pandas.NA
其缺失值,而不是numpy.nan
.例子
对于 Int8D 类型:
>>> ser = pd.Series([2, pd.NA], dtype=pd.Int8Dtype()) >>> ser.dtype Int8Dtype()
对于 Int16D 类型:
>>> ser = pd.Series([2, pd.NA], dtype=pd.Int16Dtype()) >>> ser.dtype Int16Dtype()
对于 Int32D 类型:
>>> ser = pd.Series([2, pd.NA], dtype=pd.Int32Dtype()) >>> ser.dtype Int32Dtype()
对于 Int64D 类型:
>>> ser = pd.Series([2, pd.NA], dtype=pd.Int64Dtype()) >>> ser.dtype Int64Dtype()
对于 UInt8D 类型:
>>> ser = pd.Series([2, pd.NA], dtype=pd.UInt8Dtype()) >>> ser.dtype UInt8Dtype()
对于 UInt16D 类型:
>>> ser = pd.Series([2, pd.NA], dtype=pd.UInt16Dtype()) >>> ser.dtype UInt16Dtype()
对于 UInt32D 类型:
>>> ser = pd.Series([2, pd.NA], dtype=pd.UInt32Dtype()) >>> ser.dtype UInt32Dtype()
对于 UInt64D 类型:
>>> ser = pd.Series([2, pd.NA], dtype=pd.UInt64Dtype()) >>> ser.dtype UInt64Dtype()
属性
没有任何
方法
没有任何