
216
|
第
7
章
本书时相对完整的扩展类型。
表 7-3:pandas 的扩展数据类型
扩展类型 说明
BooleanDtype
可为空的布尔数据
,
作为字符串传递时使用
“ boolean ”
CategoricalDtype
分类数据类型
,
作为字符串传递时使用
“
category
”
DatetimeTZDtype
带有时区的 Datetime 对象
Float32Dtype
32 位可为空的浮点类型
,
作为字符串传递时使用
“
Float32
”
Float64Dtype
64 位可为空的浮点类型
,
作为字符串传递时使用
“
Float64
”
Int8Dtype
8 位可为空的有符号整数类型
,
作为字符串传递时使用
“
Int8
”
Int16Dtype
16 位可为空的有符号整数类型
,
作为字符串传递时使用
“
Int16
”
Int32Dtype
32 位可为空的有符号整数类型
,
作为字符串传递时使用
“
Int32
”
Int64Dtype
64 位可为空的有符号整数类型
,
作为字符串传递时使用
“
Int64
”
UInt8Dtype
8 位可为空的无符号整数类型
,
作为字符串传递时使用
“
UInt8
”
UInt16Dtype
16 位可为空的无符号整数类型
,
作为字符串传递时使用
“
UInt16
”
UInt32Dtype
32 位可为空的无符号整数类型
,
作为字符串传递时使用
“
UInt32
”
UInt64Dtype
64 位可为空的无符号整数类型
,
作为字符串传递时使用
“
UInt64
”
7.4
字符串操作
Python
能够成为流行的原生数据处理语言,部分原因是其具备简单易用的字符串和文本 ...