np.set_printoptions(formatter={'float_kind': lambda x: '{:,}'.format(x).
    replace(',', "'"), 'int_kind': lambda x: '{:,}'.format(x).replace(',',
    "'")})
set thousands separators in iPython without string formatting