8000 numpy.stack name is confusing given that it's different from hstack, vstack · Issue #7183 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
numpy.stack name is confusing given that it's different from hstack, vstack #7183
Closed
@aukejw

Description

@aukejw

numpy.stack stacks a sequence of arrays along a new axis.

hstack, vstack, on the other hand, actually perform a concatenate: they stacks arrays along an existing axis.

The name stack seems counterintuitive and confusing. I understand that for backward compatibility it should not be altered, but perhaps the difference can be emphasized in the documentation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0