SciPy

This is documentation for an old release of NumPy (version 1.10.1). Read this page in the documentation of the latest stable release (version > 1.17).

Structured array extensions

  1. Create with-style context that makes “named-columns” available as names in the namespace.
with np.columns(array):
price = unit * quantityt
  1. Allow structured arrays to be sliced by their column (i.e. one additional indexing option for structured arrays) so that a[:4, ‘foo’:’bar’] would be allowed.