전체 글 (102) 썸네일형 리스트형 09_03. 공공데이터포탈 API - Covid19 시도별 코로나 발생 현황 데이터 보호되어 있는 글입니다. 09_02. 공공데이터포탈 API - 공휴일 데이터 ## Load the Modules import requests import re import pandas as pd import json import os import time, datetime from dfply import * from urllib.request import urlopen import math import xmltodict API Key 설정 api_key= "API 인증키 입력" 호출할 공휴일 데이터 년, 월 정보 Setting l_year = ["2018","2019","2020","2021"] l_month = [str(val).zfill(2) for val in list(range(1, 13))] for 문을 활용하여 데이터 호출 df_holiday=pd.DataFrame().. 07_01_35. local 환경에서 그래프(graph) 한글 깨짐 local PC 환경에서 그래프 생성시, 범례 혹은 title에서 한글 깨짐 발생 시 해결하고자 한다~ 아래 코드를 실행하면, 한글 폰트가 사용 가능해 짐 :) import platform import matplotlib if platform.system() == 'Windows': matplotlib.rc('font', family = 'Malgun Gothic') elif platform.system() == 'Darwin': matplotlib.rc('font', family = 'AppleGothic') else: matplotlib.rc('font', family = 'NanumGothic') matplotlib.rcParams['axes.unicode_minus'] = False 이전 1 ··· 16 17 18 19 20 21 22 ··· 34 다음