Suppress Scientific Notation in Numpy When Creating Array From Nested List

前端 未结 4 1735
忘掉有多难
忘掉有多难 2020-11-30 17:48

I have a nested Python list that looks like the following:

my_list = [[3.74, 5162, 13683628846.64, 12783387559.86, 1.81],
 [9.55, 116, 189688622.37, 26033226         


        
4条回答
  •  旧时难觅i
    2020-11-30 18:11

    I guess what you need is np.set_printoptions(suppress=True), for details see here: http://pythonquirks.blogspot.fr/2009/10/controlling-printing-in-numpy.html

    For SciPy.org numpy documentation, which includes all function parameters (suppress isn't detailed in the above link), see here: https://docs.scipy.org/doc/numpy/reference/generated/numpy.set_printoptions.html

提交回复
热议问题