-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
DOC: Clarify that numpy.printoptions
applies only to ndarray
, not…
#29450
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: Clarify that numpy.printoptions
applies only to ndarray
, not…
#29450
Conversation
Can we also get similar notes in the docstrings for Also you don't have to do this as part of this PR or at all, but in reviewing this I'm noticing we're missing content in the narrative docs about how to print and format arrays. It'd be nice to add some content explaining that outside of the docstrings. |
Thank you for the review!
Sure! I'll add similar notes to both of those functions.
I totally agree. As you suggested, I'll plan to open a separate PR to address that. |
3714b74
to
0c9761c
Compare
I've added similar descriptions to [Added] |
… scalars As discussed in numpy#29409, numpy.printoptions applies only to `numpy.ndarray`, not to scalars. A Note describing this behavior has been added to the docstring.
0c9761c
to
32cb498
Compare
[skip cirrus] [skip actions] [skip azp]
Looks good, let's bring this in! By the way, for docs-only PRs if you add the string |
Thanks @riku-sakamoto! |
Overview
This PR added an note for
numpy.printoptions
Details
set_printoptions
doesn't apply to numpy scalars #29409, numpy.printoptions applies only tonumpy.ndarray
, not to scalars.