[Numpy-discussion] matrix default to column vector?

Geoffrey Ely gely at usc.edu
Fri Jun 5 13:33:31 EDT 2009

On Jun 5, 2009, at 10:18 AM, josef.pktd at gmail.com wrote:
> I'm only using arrays for consistency, but my econometrics code is
> filled with arr[np.newaxis,:] .

arr[None,:] is a lot cleaner in my opinion, especially when using  
"numpy" as the namespace.


More information about the NumPy-Discussion mailing list