<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 11/09/2017 04:30 AM, Joe wrote:<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<br>
> supported for backward compatibility, but you should prefer<br>
> np.concatenate or np.stack."<br>
><br>
> Using vstack was convenient because "the arrays must have the same shape<br>
> 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<br>
> without using e.g. atleast_2d on the (3,) array.<br>
><br>
> Is there a possibility to mimic that behavior with np.concatenate or<br>
> np.stack?<br>
><br>
> Joe<br>
<br></blockquote><div><br></div><div>Can anybody explain why vstack is going the way of the dodo? </div><div>Why are stack / concatenate better? What is 'bad' about vstack?</div><div><br></div><div>Thanks,</div><div><br></div><div>Mark </div></div></div></div>