<div dir="ltr"><span style="font-size:10pt">On Thu, Jul 18, 2013 at 5:57 PM, Alan G Isaac <<a href="mailto:alan.isaac@gmail.com">alan.isaac@gmail.com</a>> wrote:</span><br>><br>> I'm floating this thought even though it is not fleshed out.<br>

><br>> On occasion, I run into the following problem:<br>> I have a rectangular array A to which I want to append<br>> a (probably) one dimensional vector b to make [A|b].<br>> Of course this can be done as np.hstack((x,b[:,None]))<br>

> (or obscurely np.r_['1,2,0',x,b]), but this has the following issues:<br>><br>> - what if ``b`` turns out to be a list?<br>> - what if ``b`` turns out to be 2d (e.g., a column vector)?<br>> - it's a bit ugly<br>

> - it is not obvious when read by others (e.g., students)<br><br>np.column_stack([x, b]) does everything you need.<br><br>--<br>Robert Kern<br></div>