To change the printing precision of numpy array x, I\'ve been using this:
x
with np.printoptions(precision=2, suppress=True): print(x)