. .
:
formatter = '%d'
if num_type == 'float':
formatter = '%%.%df' % decimals
np.savetxt(out, arr, fmt=formatter)
out - , . , headers= np.savetxt. , .
numpy 1300 1300 , ( np.core.defchararray.rstrip(np.char.mod('%.4f', x), '0')), ~ 1,7 , np.savetxt 0,48 .
, np.savetxt - , .
:
:
np.savetxt(out, arr, fmt='%.4g')
, , , .