Skip to content

Commit

Permalink
DOC:Update the description of set_printoptions in quickstart doc #13900
Browse files Browse the repository at this point in the history
… (#13948)

Quickstart guide recommends np.set_printoptions(threshold=np.nan) but that fails.
So changed that to np.set_printoptions(threshold=sys.maxsize)

Closes #13900

* DOC:Update the docstring of set_printoptions

Add preferred max value for threshold is sys.maxsize

* Revert "DOC:Update the docstring of set_printoptions"

This reverts commit 9641121.

* DOC:Update the docstring of set_printoptions

Add preferred max value for threshold is sys.maxsize

* DOC:Update the docstring of set_printoptions

Better pharasing in docstring.

* DOC:Update the description of set_printoptions in quickstart doc #13900

Fix indentation
  • Loading branch information
sameshl authored and seberg committed Jul 9, 2019
1 parent fc0043d commit b93b0b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/source/user/quickstart.rst
Expand Up @@ -270,7 +270,7 @@ can change the printing options using ``set_printoptions``.

::

>>> np.set_printoptions(threshold=np.nan)
>>> np.set_printoptions(threshold=sys.maxsize) # sys module should be imported


Basic Operations
Expand Down
1 change: 1 addition & 0 deletions numpy/core/arrayprint.py
Expand Up @@ -114,6 +114,7 @@ def set_printoptions(precision=None, threshold=None, edgeitems=None,
threshold : int, optional
Total number of array elements which trigger summarization
rather than full repr (default 1000).
To always use the full repr without summarization, pass `sys.maxsize`.
edgeitems : int, optional
Number of array items in summary at beginning and end of
each dimension (default 3).
Expand Down

0 comments on commit b93b0b8

Please sign in to comment.