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