2.6 reindex 관련 예제 질문
[해결 완료 과정 기록] 최신버전 업데이트 하면 해결된다고 해서 검색 후 업데이트 방법 찾음 일단 아나콘다 삭제 후 다시 설치 함 강의자료 말고 새로운 파일 열어서 코드 작성함 !pip install pandas 입력하여 최신버전 업데이트함(23-08-30 기준 업데이트 전 pandas 1.5.3 version) import pandas as pdpd.__version__ 로 확인하니 1.5.3 이었음 conda update --all 을 통해 라이브러리 업데이트 수행Note: you may need to restart the kernel to use updated packages. DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/msys2/noarch/current_repodata.json HTTP/1.1" 200 None DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/current_repodata.json HTTP/1.1" 200 None DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/r/noarch/current_repodata.json HTTP/1.1" 200 None DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/msys2/win-64/current_repodata.json HTTP/1.1" 200 None DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/noarch/current_repodata.json HTTP/1.1" 200 None DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/r/win-64/current_repodata.json HTTP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/datashader-0.15.2-py311haa95532_0.tar.bz2 HTTP/1.1" 200 17851220 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/grpc-cpp-1.48.2-hf108199_0.conda HTTP/1.1" 200 24603538 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/libxslt-1.1.37-h2bbff1b_1.conda HTTP/1.1" 200 457852 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/botocore-1.29.76-py311haa95532_0.conda HTTP/1.1" 200 6662107 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/safetensors-0.3.2-py311h062c2fa_0.conda HTTP/1.1" 200 279828 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/qt-main-5.15.2-h6072711_9.conda HTTP/1.1" 200 62316326 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/multiprocess-0.70.14-py311haa95532_0.conda HTTP/1.1" 200 330150 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/huggingface_hub-0.15.1-py311haa95532_0.conda HTTP/1.1" 200 415874 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/scipy-1.11.1-py311hc1ccb85_0.conda HTTP/1.1" 200 21771686 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/spyder-kernels-2.4.4-py311haa95532_0.conda HTTP/1.1" 200 210615 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/conda-libmamba-solver-23.7.0-py311haa95532_0.conda HTTP/1.1" 200 92447 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/tokenizers-0.13.2-py311h49fca51_1.conda HTTP/1.1" 200 2953006 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/libxml2-2.10.4-h0ad7f3c_1.conda HTTP/1.1" 200 2976881 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/boost-cpp-1.82.0-h59b6b97_1.conda HTTP/1.1" 200 11797 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/ipython-8.12.2-py311haa95532_0.conda HTTP/1.1" 200 1507026 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/pytables-3.8.0-py311h4671533_3.conda HTTP/1.1" 200 2233335 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/pandas-2.0.3-py311hf62ec03_0.conda HTTP/1.1" 200 12530146 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/python-xxhash-2.0.2-py311h2bbff1b_1.conda HTTP/1.1" 200 22089 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/aiobotocore-2.5.0-py311haa95532_0.conda HTTP/1.1" 200 154739 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/s3fs-2023.4.0-py311haa95532_0.conda HTTP/1.1" 200 77605 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/platformdirs-3.10.0-py311haa95532_0.conda HTTP/1.1" 200 41274 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/openssl-1.1.1v-h2bbff1b_0.conda HTTP/1.1" 200 5773548 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/cryptography-39.0.1-py311h21b164f_0.conda HTTP/1.1" 200 1079730 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/noarch/responses-0.13.3-pyhd3eb1b0_0.conda HTTP/1.1" 200 25024 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/ipykernel-6.25.0-py311h746a85d_0.conda HTTP/1.1" 200 315883 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/pyarrow-11.0.0-py311h8a3a540_1.conda HTTP/1.1" 200 3171200 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/conda-content-trust-0.1.3-py311haa95532_0.conda HTTP/1.1" 200 99747 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/h5py-3.9.0-py311h4e0e482_0.conda HTTP/1.1" 200 1010811 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/mkl-2023.1.0-h6b88ed4_46357.conda HTTP/1.1" 200 163131907 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/noarch/python-tzdata-2023.3-pyhd3eb1b0_0.conda HTTP/1.1" 200 143832 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/krb5-1.20.1-h5b6d351_1.conda HTTP/1.1" 200 805284 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/arrow-cpp-11.0.0-h2c9b28c_2.conda HTTP/1.1" 200 7648722 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/qt-webengine-5.15.9-h5bd16bc_7.conda HTTP/1.1" 200 60963283 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/transformers-4.32.1-py311haa95532_0.conda HTTP/1.1" 200 9083543 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/xxhash-0.8.0-h2bbff1b_3.conda HTTP/1.1" 200 89482 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/hdf5-1.12.1-h51c971a_3.conda HTTP/1.1" 200 12486857 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/datasets-2.12.0-py311haa95532_0.conda HTTP/1.1" 200 899103 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/conda-23.7.3-py311haa95532_0.conda HTTP/1.1" 200 1403925 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/libboost-1.82.0-hae598e9_1.conda HTTP/1.1" 200 23697549 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/libpq-12.15-h906ac69_0.conda HTTP/1.1" 200 3278278 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/fsspec-2023.4.0-py311haa95532_0.conda HTTP/1.1" 200 326599 DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/conda-build-3.26.1-py311haa95532_0.conda HTTP/1.1" 200 838755 마지막 부분에 이런 에러가 발생하긴 했지만 최신버전 업데이트 확인해서 그냥 넘어감 import pandas as pdpd.__version__'2.0.3'버전이 2.0.3 으로 pandas 업데이트 확인함 import numpy as npnp.__version__'1.24.3' !pip install finance-datareaderimport FinanceDataReader as fdr SAM = fdr.DataReader("005930")SAM(사진)(사진) 강의자료대로 코드 입력 후 실행하니 잘 나오는 것을 확인함