0

I need to create a 12 x 12 numpy array . However from the 6th value onward , jupyter notebook is pushing the array onto the next line.I appreciate this is only a visual thing and that my array will work correctly , its just makes it very difficult for checking when one row spans two lines.

Cheers ,

Ross

enter image description here

"edit" the following has been added np.set_printoptions(linewidth=np.inf) . All but one of the values is on a single line now. can i reduce the spacing between the values .

Updated array

"edit"

found a work around . set line width to inf and round values to 1 dp.

hpaulj
  • 221,503
  • 14
  • 230
  • 353
Ross1993
  • 1
  • 1

0 Answers0