[Numpy-discussion] pretty print array

John Hunter jdh2358@gmail....
Sat Mar 3 12:22:19 CST 2007

I have a numpy array of floats, and would like an easy way of
specifying the format string when printing the array, eg

print x.pprint('%1.3f')

would do the normal repr of the array but using my format string for
the individual elements.  Is there and easy way to get something like
this currently?


More information about the Numpy-discussion mailing list