summaryrefslogtreecommitdiff
path: root/doc/neps/nep-0009-structured_array_extensions.rst
blob: 5912b268ba0416197e057753913deb6041d0f4e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.. _NEP09:

===================================
NEP 9 — Structured array extensions
===================================

:Status: Deferred

1.  Create with-style context that makes "named-columns" available as names in the namespace.

   with np.columns(array):
        price = unit * quantity


2. 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.