V2EX  ›  英汉词典

Dtype

释义 Definition

dtypedata type(数据类型) 的缩写,常用于编程与数据分析(尤其是 NumPy / pandas)中,表示某个数组、列或变量的“数据类型规格”(例如 int64float32booldatetime64[ns]object 等)。也可泛指“某对象的类型信息”。

发音 Pronunciation (IPA)

/ˈdiː.taɪp/

例句 Examples

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],以避免解析错误。

词源 Etymology

dtype 来自 data type 的缩略写法:d(data)+ type。它在科学计算与数据分析生态里被广泛使用,尤其是在 NumPy 里作为描述数组元素存储格式与精度的核心概念,随后被 pandas 等库沿用。

相关词 Related Words

文学与著作中的用例 Literary Works

  • Python for Data Analysis(Wes McKinney):在讲解 pandas Series/DataFrame 的数据类型与 dtype/dtypes 时频繁出现。
  • NumPy User Guide(NumPy 官方用户指南):在数组元素类型、内存布局与类型转换章节中大量使用 dtype
  • Effective Pandas(Matt Harrison):讨论性能与类型优化时常提到通过调整 dtype 减少内存占用。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1844 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 11:39 · PVG 19:39 · LAX 03:39 · JFK 06:39
♥ Do have faith in what you're doing.