<p dir="ltr"><br>
On 9 Sep 2013 20:46, "Skip Montanaro" <<a href="mailto:skip@pobox.com">skip@pobox.com</a>> wrote:<br>
><br>
> > However, it's common in economic statistics to have a rectangular<br>
> > array, and extract both certain rows (tuples of observations on<br>
> > variables) and certain columns (variables).  For example you might<br>
> > have data on populations of American states from 1900 to 2012, and<br>
> > extract the data on New England states from 1946 to 2012 for analysis.<br>
><br>
> When Steven first brought up this PEP on comp.lang.python, my main concern<br>
> was basically, "we have SciPy, why do we need this?" Steven's response, which<br>
> I have come to accept, is that there are uses for basic statistics for<br>
> which SciPy's<br>
> stats module would be overkill.<br>
><br>
> However, once you start slicing your data structure along more than one axis, I<br>
> think you very quickly will find that you need numpy arrays for performance<br>
> reasons, at which point you might as go "all the way" and install SciPy. I don't<br>
> think slicing along multiple dimensions should be a significant concern for this<br>
> package.<br>
><br>
> Alternatively, I thought there was discussion a long time ago about<br>
> getting numpy's<br>
> (or even further back, numeric's?) array type into the core. Python<br>
> has an array type<br>
> which I don't think gets a lot of use (or love). Might it be<br>
> worthwhile to make sure the<br>
> PEP 450 package works with that? Then extend it to multiple dimensions? Or just<br>
> bite the bullet and get numpy's array type into the Python core once<br>
> and for all?<br>
><br>
> Sort of Tulip for arrays...</p>
<p dir="ltr">Aka memoryview :)</p>
<p dir="ltr">Stefan Krah already fixed most of the multidimensional support issues in 3.3 (including the "cast" method to reinterpret the contents in a different format). The main missing API elements are multidimensional slicing and the ability to export them from types defined in Python.</p>

<p dir="ltr">Cheers,<br>
Nick.<br></p>
<p dir="ltr">><br>
> Skip<br>
> _______________________________________________<br>
> Python-Dev mailing list<br>
> <a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a><br>
> Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com">https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com</a><br>
</p>