[Numpy-discussion] ndarray.T2 for 2D transpose

Todd toddrjen at gmail.com
Thu Apr 7 11:14:40 EDT 2016


On Thu, Apr 7, 2016 at 4:59 AM, Joseph Martinot-Lagarde <
contrebasse at gmail.com> wrote:

> Alan Isaac <alan.isaac <at> gmail.com> writes:
>
> > But underlying the proposal is apparently the
> > idea that there be an attribute equivalent to
> > `atleast_2d`.  Then call it `d2p`.
> > You can now have `a.d2p.T` which is a lot
> > more explicit and general than say `a.T2`,
> > while requiring only 3 more keystrokes.
>
>
> How about a.T2d or a .T2D ?
>
>
I thought of that, but I wanted to keep things as short as possible (but
not shorter).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20160407/f901259f/attachment.html>


More information about the NumPy-Discussion mailing list