티스토리 뷰

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) #원하는 문자열 길이만큼 조정
반응형
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/02   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
글 보관함