Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: 조회 날짜 범위에 데이터가 없는 경우 오류(IndexError) #30

Closed
FinanceData opened this issue Mar 6, 2020 · 1 comment

Comments

@FinanceData
Copy link
Owner

조회 날짜 범위에 데이터가 없는 경우 오류(IndexError)

예: AMCR 상장일 날짜가(2019-06-11), 날짜의 범위에 데이터가 없는 경우(2018-09-01 ~ 2018-12-31) IndexError

fdr.DataReader('AMCR', '2018-01-01', '2018-12-31')
---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-44-bdb96aeb23fb> in <module>()
----> 1 fdr.DataReader('AMCR', '2018-01-01', '2018-12-31')

1 frames
/usr/local/lib/python3.6/dist-packages/pandas/core/indexes/base.py in __getitem__(self, key)
   4278         if is_scalar(key):
   4279             key = com.cast_scalar_indexer(key)
-> 4280             return getitem(key)
   4281 
   4282         if isinstance(key, slice):

IndexError: index -1 is out of bounds for axis 0 with size 0
@FinanceData
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant