-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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: Add documentation for round and round_ aliases #19906
Conversation
@@ -3276,7 +3276,8 @@ def around(a, decimals=0, out=None): | |||
See Also | |||
-------- | |||
ndarray.round : equivalent method | |||
|
|||
numpy.round: equivalent method |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
numpy.round: equivalent method |
numpy.round
does not exist in the documentation so we cannot add it to the See Also
for now. I think a good option would be to write in the Notes
that np.round
is often used as an alias for np.around
. That would potentially clear up any confusion as to why np.round
is used in the examples in the Notes section.
@@ -3276,7 +3276,8 @@ def around(a, decimals=0, out=None): | |||
See Also | |||
-------- | |||
ndarray.round : equivalent method | |||
|
|||
numpy.round: equivalent method | |||
numpy.round_: equivalent method |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
numpy.round_: equivalent method | |
round_ : equivalent method |
This is a nit just to maintain consistency with the rest of the documentation.
@aparnabushan It would be nice to fix #19717. Do you think you could finish this PR? |
I’ve opened a new PR (#21853) to continue the work started here. I’m closing this PR and adding you as my co-authors in the new one. Feel free to contribute to the new PR. |
Added docstring for round and round_ as aliases that both refer to around()
This is a fix to the bug - #19717