Printing NumPy Arrays
This page explains how to control the formatting of printed NumPy arrays. Note that these printing options apply only to arrays, not to scalars.
Defining printing options
Applying settings globally
Use numpy.set_printoptions to change printing options for the entire runtime session. To inspect current print settings, use numpy.get_printoptions:
>>> np.