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

下载数据的时候出错。判断df为空时出错了 #3

Open
Rockyzsu opened this issue Apr 26, 2017 · 0 comments
Open

下载数据的时候出错。判断df为空时出错了 #3

Rockyzsu opened this issue Apr 26, 2017 · 0 comments

Comments

@Rockyzsu
Copy link

Rockyzsu commented Apr 26, 2017

File "C:/git/xuefu/data.py", line 33, in save_data
if data.index[0] in ct._start_range and data.index[-1] in ct._end_range: #筛选一次代码,使用头尾都包含的代码
File "C:\Python27\lib\site-packages\pandas\indexes\base.py", line 1264, in getitem
return getitem(key)
IndexError: index 0 is out of bounds for axis 0 with size 0

在我的repository中已经修改过来了。

@Rockyzsu Rockyzsu changed the title 下载数据的时候出错。日期越界 下载数据的时候出错。判断df为空时出错了 Apr 26, 2017
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