8000 DOC: Mention '1.25' legacy printing mode in ``set_printoptions`` by seberg · Pull Request #26742 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

DOC: Mention '1.25' legacy printing mode in set_printoptions #26742

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

Merged
merged 1 commit into from
Jun 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions numpy/_core/arrayprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,19 @@ def set_printoptions(precision=None, threshold=None, edgeitems=None,
by not inserting spaces after commas that separate fields and after
colons.

If set to ``'1.25'`` approximates printing of 1.25 which mainly means
that numeric scalars are printed without their type information, e.g.
as ``3.0`` rather than ``np.float64(3.0)``.

If set to `False`, disables legacy mode.

Unrecognized strings will be ignored with a warning for forward
compatibility.

.. versionadded:: 1.14.0
.. versionchanged:: 1.22.0
.. versionchanged:: 2.0

override_repr: callable, optional
If set a passed function will be used for generating arrays' repr.
Other options will be ignored.
Expand Down
Loading
0