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: Add documentation for round and round_ aliases #19906

Closed

Conversation

aparnabushan
Copy link
Contributor

@aparnabushan aparnabushan commented Sep 20, 2021

Added docstring for round and round_ as aliases that both refer to around()
This is a fix to the bug - #19717

@charris charris changed the title Add documentation for round and round_ aliases DOC: Add documentation for round and round_ aliases Sep 20, 2021
@@ -3276,7 +3276,8 @@ def around(a, decimals=0, out=None):
See Also
--------
ndarray.round : equivalent method

numpy.round: equivalent method
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
numpy.round_: equivalent method
round_ : equivalent method

This is a nit just to maintain consistency with the rest of the documentation.

@InessaPawson
Copy link
Member

@aparnabushan It would be nice to fix #19717. Do you think you could finish this PR?

@InessaPawson InessaPawson added the 52 - Inactive Pending author response label Jun 23, 2022
@InessaPawson
Copy link
Member

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.

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

Successfully merging this pull request may close these issues.

None yet

3 participants