python - Print the full numpy array -


when print numpy array, truncated representation, want full array.

is there way this?

examples:

>>> numpy.arange(10000) array([   0,    1,    2, ..., 9997, 9998, 9999]) >>> numpy.arange(10000).reshape(250,40) array([[   0,    1,    2, ...,   37,   38,   39],        [  40,   41,   42, ...,   77,   78,   79],        [  80,   81,   82, ...,  117,  118,  119],        ...,         [9880, 9881, 9882, ..., 9917, 9918, 9919],        [9920, 9921, 9922, ..., 9957, 9958, 9959],        [9960, 9961, 9962, ..., 9997, 9998, 9999]]) 

to clarify on reed's reply

import numpy numpy.set_printoptions(threshold=numpy.nan) 

note reply given above works initial 'from numpy import *', not advisable. works me

numpy.set_printoptions(threshold='nan') 

for full documentation, see http://docs.scipy.org/doc/numpy/reference/generated/numpy.set_printoptions.html.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -