[Numpy-discussion] matrix default to column vector?

Geoffrey Ely gely@usc....
Fri Jun 5 12:33:31 CDT 2009

On Jun 5, 2009, at 10:18 AM, josef.pktd@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