Python/Pandas
                
              차트 그리기할때 한글 안깨지게 하는법
                healingmau
                 2022. 5. 2. 18:02
              
              
            
            
차트 그리기할때 한글 안깨지게 하는법

파이썬(Python) 판다스(pandas)에서
차트를 그릴때 한글을 입력하면
깨져서 나오는데~
그걸 제대로 나올수 있도록
도와주는 코딩입니다.
한글깨짐 방지 코딩!!
| 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 | # ------------------------------------------------------------------------------ # import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sb %matplotlib inline import platform from matplotlib import font_manager, rc plt.rcParams['axes.unicode_minus'] = False if platform.system() == 'Darwin':     rc('font', family='AppleGothic') elif platform.system() == 'Windows':     path = "c:/Windows/Fonts/malgun.ttf"     font_name = font_manager.FontProperties(fname=path).get_name()     rc('font', family=font_name) else:     print('Unknown system... sorry~~~~') # ------------------------------------------------------------------------------ # | cs | 
출처는 저도 수업때 배운거라
자세히는 모르겠습니다.