에스프리터
close
프로필 배경
프로필 로고

에스프리터

    • 전체보기 (133)
      • DATA (46)
      • DEV (43)
      • CLOUD (38)
      • MIND (2)
      • Monthly I Learned (4)
  • mode_edit_outline글작성
  • settings환경설정
    728x90

    [TIL] python에서 dataframe를 깔끔하게 Print 출력시키기 220920-3

    💡 Today I Learned 요약 (8회차) - tabulate를 이용해 Dataframe을 깔끔하게 print 할 수 있다 python에서 dataframe를 깔끔하게 Print 출력시키기 python에서 dataframe을 print 출력하면 줄 간격 등이 맞지 않아 알아보기 힘들게 출력이 된다. 그때 도움이 되는 것이 tabulate다. from tabulate import tabulate 설치후 아래와 같이 그냥 print가 아닌 tabulate를 걸어주고 출력하면 예쁘게 출력되는 것을 볼 수 있다. 템플릿도 사용할 수 있으니 참고. >>> from tabulate import tabulate >>> table = [["Sun",696000,1989100000],["Earth",6371,597..

    • format_list_bulleted DEV
    • · 2022. 9. 20.
    • textsms
    728x90
    • 1
    300x250
    전체 카테고리
    • 전체보기 (133)
      • DATA (46)
      • DEV (43)
      • CLOUD (38)
      • MIND (2)
      • Monthly I Learned (4)
    최근 글
    인기 글
    최근 댓글
    Copyright © 에스프리터 All rights reserved.
    Designed by JJuum

    티스토리툴바