https://pola-rs.github.io/polars/py-polars/html/reference/api/polars.Config.set_fmt_str_lengths.html
데이터프레임을 읽어올 때, 글자가 길면 ...으로 생략됨
Config를 설정해주면 된다
import polars as pl
pl.Config(fmt_str_lengths=100) #원하는 문자열 길이만큼 조정
반응형
'파이썬(Python)&판다스(Pandas)&Polars' 카테고리의 다른 글
[Pandas] 두 개의 데이터프레임에서 특정 문자열이 포함된 행 제거하기(~, isin) (2) | 2024.01.04 |
---|---|
[Pandas] 빈 값(NaN, None)에 원하는 값 채우기(pd.where) (0) | 2024.01.03 |
[Python] 변수명을 for문으로 할당하기 - globals() (0) | 2023.11.21 |
[polars] 특정 조건을 만족하는 데이터 조회(df.filter) (2) | 2023.11.21 |
[polars] 셀 안의 문자열 또는 리스트 값 모두 보이게 출력(polars.Config.set_fmt_str_lengths, max_colwidth) (0) | 2023.11.21 |