Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy print options

with np.printoptions(precision=2, suppress=True, threshold=5):
...     np.linspace(0, 10, 10)
array([ 0.  ,  1.11,  2.22, ...,  7.78,  8.89, 10.  ])
Source by numpy.org #
 
PREVIOUS NEXT
Tagged: #numpy #print #options
ADD COMMENT
Topic
Name
3+8 =