전체 글 (102) 썸네일형 리스트형 07_01_10. jupyter notebook terminal에서 폴더 삭제 rm -rf /home/ec2-user/SageMaker/dain/code/data 07_01_08. seaborn x축 날짜 변경 (시계열 형태) from matplotlib import pyplot as plt #plot fig = plt.figure(figsize=(20,25)) p = sns.relplot("oper_date", "bg_purch_qty", data=df_plot, estimator=None, kind='line', col='goods_cd', col_wrap=5) x_dates = df_plot['oper_date'].dt.strftime('%y-%m').sort_values().unique() p.set_xticklabels(label=x_dates, rotation=45, ha='right') stackoverflow.com/questions/51105648/ordering-and-formatting-dates-on-x-.. 07_01_07. aws 한글 폰트 지정 import matplotlib.font_manager as fm font_list = matplotlib.font_manager.findSystemFonts(fontpaths=None, fontext='ttf') [matplotlib.font_manager.FontProperties(fname=font).get_name() for font in font_list] font_path = '/usr/share/fonts/truetype/nanum/NanumGothic.ttf' fontprop = fm.FontProperties(fname=font_path) sam_line = dat_line[ dat_line["line_cd"] == line] linenm = df_line.line_nm[ df_line[.. 이전 1 ··· 26 27 28 29 30 31 32 ··· 34 다음