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
728x90
'파이썬(Python) > Pandas' 카테고리의 다른 글
Dataframe의 컬럼별 포멧 정의하기 (0) | 2022.01.17 |
---|---|
pandas에서 모든 행 보여주기 (0) | 2022.01.14 |
python에서 pandas dataframe에서 컬럼의 text가 모두 안보이는 경우 (0) | 2021.03.12 |
Python의 DataFrame에서 모든 column이 나오게 하는 방법 (0) | 2021.03.12 |
dataframe 생성하기 (0) | 2021.02.03 |