I\'m curious, whether there is any way to print formatted numpy.arrays, e.g., in a way similar to this:
numpy.arrays
x = 1.23456 print \'%.3f\' % x >
x = 1.23456 print \'%.3f\' % x
And here is what I use, and it's pretty uncomplicated:
print(np.vectorize("%.2f".__mod__)(sparse))