10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
No description provided.
Sorry, something went wrong.
e49c534
dedee47
DOC: Improve documentation for transpose()
9bf03f6
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
"similar object", is typically called "sequence" in python language. In fact, tuple or list can probably also be replaced with sequence. Unless we want to nudge people towards tuple specifically (since in many cases axes has to be a tuple).
tuple or list
sequence
tuple
axes
Looks good to me.
I would lean towards documenting it as just tuple or list, and not encouraging users to to pass anything else.
I think PEP257 needs a blank line before this sentence.
This comment still applies.
Pushed fix
Address comments
4bd0950
Addressed the comments
Address comment
a563892
Thanks, if you still have some patience. I noticed that the return section says it normally returns a view. That is incorrect. transpose will always return a view.
return
transpose
That is incorrect. transpose will always return a view.
You wish... transpose will return whatever the subclass of ndarray decides to implement their transpose method as, which in the past has not always been a view. I think this came up when I was implementing #8441.
ndarray
Channeling past you:
I guess a subclass could cause a copy (the code looks like subclassing doing something fancy is not be anticipated, there may be a bug here),
d56e5a1
That is incorrect. transpose will always return a view. You wish... transpose will return whatever the subclass of ndarray decides to implement their transpose method as, which in the past has not always been a view. I think this came up when I was implementing #8441
You wish... transpose will return whatever the subclass of ndarray decides to implement their transpose method as, which in the past has not always been a view. I think this came up when I was implementing #8441
:(
@seberg: See my edit - we discussed this before.
Guys, if I am supposed to make any change to this it's not clear to me. Just a reminder- please clarify if it's not OK.
Sounds like an improvement. Thanks @danpovey.
95e570c
seberg seberg left review comments
eric-wieser eric-wieser left review comments
Successfully merging this pull request may close these issues.