9월, 2023의 게시물 표시

달러/엔화/파운드 상대 환율 그래프 생성 python 코드

요즘 영국에서 방랑 생활을 하고 있고, 미국 주식에 관심이 있어 환율도 가끔 챙겨보고 있다.  여러 환율 지표들을 한 그래프에서 보고 싶어서 만들어본 Python 코드. 달러, 엔화, 파운드 대비 원화의 상대 환율을 그래프로 그려서 보여줌 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 27 28 29 30 31 32 # Graph Generation for Exchange Rate    # need to install yahoo finance #pip install yfinance   # import  import  yfinance  as  yf import  matplotlib.pyplot  as  plt from  datetime  import  datetime, timedelta   # get current date/time now  =  datetime.now()   # Start date: from 6 months ago  start_date  =  now  -  timedelta(weeks = 24 ) # End date: to today end_date  =  now.date()   # Load data data_usd  =  yf.download([ 'USDKRW=X' ],start = start_date, end = end_date) data_jpy...