import matplotlib.pyplot as plt
# 사용자 운영체제 확인
import platform
platform.system()
# 운영체제별 한글 폰트 설정
if platform.system() == 'Darwin': # Mac 환경 폰트 설정
plt.rc('font', family='AppleGothic')
elif platform.system() == 'Windows': # Windows 환경 폰트 설정
plt.rc('font', family='Malgun Gothic')
임포트해서 쓰기
!pip install koreanize-matplotlib
import koreanize_matplotlib
'데이터 분석 > Pandas' 카테고리의 다른 글
맥북 파일경로, 위치 복사 단축키 (csv 파일 불러오기) (0) | 2025.01.14 |
---|---|
Pandas) 기본문법 정리 (0) | 2024.12.18 |