<div dir="ltr">On Thu, Nov 9, 2017 at 1:30 AM, Joe <<a href="mailto:solarjoe@posteo.org">solarjoe@posteo.org</a>> wrote:<br>><br>> Hello,<br>><br>> I have a question and hope that you can help me.<br>><br>> The doc for vstack mentions that "this function continues to be supported for backward compatibility, but you should prefer np.concatenate or np.stack."<br>><br>> Using vstack was convenient because "the arrays must have the same shape along all but the first axis."<br>><br>> So it was possible to stack an array (3,) and (2, 3) to a (3, 3) array without using e.g. atleast_2d on the (3,) array.<br>><br>> Is there a possibility to mimic that behavior with np.concatenate or np.stack?<br><br>Quite frankly, I ignore the documentation as I think it's recommendation is wrong in these cases. Vive la vstack!<br><br>--<br>Robert Kern</div>