본문 바로가기

Data Science

[Pandas] int타입 특정 자리수 string으로 format하기 (2를 02로 표현)

728x90
df.astype(str).str.zfill(2)
반응형