NEP 9 — 结构化数组扩展#
- 状态:
Deferred
创建一个 with 风格的上下文,使“命名列”可以在命名空间中作为名称使用。
- with np.columns(array)
price = unit * quantity
允许结构化数组按其列进行切片(即为结构化数组提供一种额外的索引选项),这样就可以允许 a[:4, ‘foo’:’bar’]。
Deferred
创建一个 with 风格的上下文,使“命名列”可以在命名空间中作为名称使用。
- with np.columns(array)
price = unit * quantity
允许结构化数组按其列进行切片(即为结构化数组提供一种额外的索引选项),这样就可以允许 a[:4, ‘foo’:’bar’]。