dtype 是 data type(数据类型) 的缩写,常用于编程与数据分析(尤其是 NumPy / pandas)中,表示某个数组、列或变量的“数据类型规格”(例如 int64、float32、bool、datetime64[ns]、object 等)。也可泛指“某对象的类型信息”。
/ˈdiː.taɪp/
The dtype of this column is int64.
这一列的 dtype 是 int64。
Before merging the datasets, we converted the timestamp dtype to datetime64[ns] to avoid parsing errors.
在合并数据集之前,我们把时间戳的 dtype 转换为 datetime64[ns],以避免解析错误。
dtype 来自 data type 的缩略写法:d(data)+ type。它在科学计算与数据分析生态里被广泛使用,尤其是在 NumPy 里作为描述数组元素存储格式与精度的核心概念,随后被 pandas 等库沿用。
dtype/dtypes 时频繁出现。 dtype。 dtype 减少内存占用。