파이썬(Python)&판다스(Pandas)&Polars
[polars] pl.Config(fmt_str_lengths=) 데이터프레임의 글자를 모두 출력
송채채
2023. 12. 12. 20:08
https://pola-rs.github.io/polars/py-polars/html/reference/api/polars.Config.set_fmt_str_lengths.html
polars.Config.set_fmt_str_lengths — Polars documentation
Set the number of characters used to display string values. Parameters: nintNumber of characters to display. Examples >>> df = pl.DataFrame( ... { ... "txt": [ ... "Play it, Sam. Play 'As Time Goes By'.", ... "This is the beginning of a beautiful friendshi
pola-rs.github.io
데이터프레임을 읽어올 때, 글자가 길면 ...으로 생략됨
Config를 설정해주면 된다
import polars as pl
pl.Config(fmt_str_lengths=100) #원하는 문자열 길이만큼 조정
반응형