목록코스피지수 (1)
차밍이

목차 pandas_datareader pandas_datareader library를 사용하면 훨씬 쉽게 코스피 or 코스닥 지수 데이터를 가져올 수 있습니다. 1. pandas_datareader 설치하기 기존에 pandas_datareader를 설치하지 않았다면 anaconda prompt 혹은 command prompt에서 설치해주시기 바랍니다. pip install pandas_datareader 2. 지수 데이터 불러오기 KOSPI 지수 데이터 가져오기 from pandas_datareader import data # 두 가지의 방식 # 방법 1 df = data.DataReader("^KS11", "yahoo") # 방법 2 df = data.get_data_yahoo("^KS11") df K..
투자
2020. 10. 2. 01:09