- API reference
- pandas arrays, scalars, and data types
- pandas.Int16Dtype
pandas.Int16Dtype#
- classpandas.Int16Dtype[source]#
An ExtensionDtype for int16 integer data.
Uses
pandas.NA
as its missing value, rather thannumpy.nan
.Attributes
None
Methods
None
Examples
For Int8Dtype:
>>>ser=pd.Series([2,pd.NA],dtype=pd.Int8Dtype())>>>ser.dtypeInt8Dtype()
For Int16Dtype:
>>>ser=pd.Series([2,pd.NA],dtype=pd.Int16Dtype())>>>ser.dtypeInt16Dtype()
For Int32Dtype:
>>>ser=pd.Series([2,pd.NA],dtype=pd.Int32Dtype())>>>ser.dtypeInt32Dtype()
For Int64Dtype:
>>>ser=pd.Series([2,pd.NA],dtype=pd.Int64Dtype())>>>ser.dtypeInt64Dtype()
For UInt8Dtype:
>>>ser=pd.Series([2,pd.NA],dtype=pd.UInt8Dtype())>>>ser.dtypeUInt8Dtype()
For UInt16Dtype:
>>>ser=pd.Series([2,pd.NA],dtype=pd.UInt16Dtype())>>>ser.dtypeUInt16Dtype()
For UInt32Dtype:
>>>ser=pd.Series([2,pd.NA],dtype=pd.UInt32Dtype())>>>ser.dtypeUInt32Dtype()
For UInt64Dtype:
>>>ser=pd.Series([2,pd.NA],dtype=pd.UInt64Dtype())>>>ser.dtypeUInt64Dtype()
On this page