New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Funky vstack #16926
Comments
We don't encourage hstack/vstack/dstack, and we do specifically encourage Adding a last sentence stating that either |
Just because @seberg didn't directly answer this:
|
1D arrays are generally treated as "horizontal" in numpy rather than "vertical". For example, when broadcasting an I'm -1 on language discouraging |
For example, there's a common need to prepend or append a scalar value to a 1D array. |
True, these tools are simply a bit related to working in a given context I think. So lets just close this. We have the generic tools without "funky" behaviour, and the others are there to stay for when they are good utilities. |
@rkern, then @seberg, seems like a deprecation warning would be welcome here. A 1D array is not horizontal nor vertical. And |
All other @Atcold I am open for suggestions to nudge users to |
From
vstack
docs:My question is why the exception???
We already have
concatenate()
.Reproducing code example:
It would make much more sense to have
vstack = stack(axis=1)
.The text was updated successfully, but these errors were encountered: