Skip to content
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

DOC: Mention that expand_dims returns a view #13571

Merged
merged 2 commits into from May 17, 2019
Merged

Conversation

bharatr21
Copy link
Contributor

Fix #11632 by mentioning in the return type that expand_dims returns a view.

@@ -533,7 +533,7 @@ def expand_dims(a, axis):
-------
res : ndarray
Output array. The number of dimensions is one greater than that of
the input array.
the input array. This is a view on the original array `a`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps replace both sentences with "View of a with the number of dimensions increased by one"

@mattip
Copy link
Member

mattip commented May 17, 2019

Thanks @Bharat123rox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DOC: expand_dims returns a view
3 participants