파이썬(Python)/Pandas

pandas에서 describe() 사용하면 전체 숫자가 안나올 때

leebaro 2021. 3. 17.
728x90

전체 숫자를 확인하고 싶지만 아래와 같이 나오는 경우가 있다.

              a             b             c
0  1.005544e+05  1.226455e+04  2.643200e+03
1  5.542502e+03  7.135909e+03  5.435605e+02

 

이 경우 아래와 같은 코드를 먼저 입력하면 전체 숫자를 볼 수 있다.

pd.set_option('float_format', '{:.2f}'.format)

 

 

     a     b       c
0  10055  12264  2643
1  5542   7135   543

 


참고

stackoverflow.com/questions/41328633/how-do-i-print-entire-number-in-python-from-describe-function

 

How do I print entire number in Python from describe() function?

I am doing some statistical work using Python's pandas and I am having the following code to print out the data description (mean, count, median, etc). data=pandas.read_csv(input_file) print(data.

stackoverflow.com

 

728x90