Pretty-printing of numpy.array
        Posted  
        
            by camillio
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by camillio
        
        
        
        Published on 2010-05-23T12:54:29Z
        Indexed on 
            2010/05/23
            13:00 UTC
        
        
        Read the original article
        Hit count: 471
        
Hello,
I'm curious, whether there is any way to print formated numpy.arrays, e.g., in the way similar to this:
x = 1.23456
print '%.3f' % x
If I want to print the numpy.array of floats, it prints several decimals, often in 'scientific' format, which is rather hard to read even for low-dimensional arrays. However, numpy.array apparently has to be printed as a string, i.e., with %s. Is there any solution ready for this purpose? Many thanks in advance :-)
© Stack Overflow or respective owner