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

ENH: Bug fix for downloading index historicals. #591

Merged
merged 1 commit into from
Dec 5, 2018
Merged

ENH: Bug fix for downloading index historicals. #591

merged 1 commit into from
Dec 5, 2018

Conversation

corakwue
Copy link
Contributor

import pandas_datareader.data as web f = web.DataReader('^DJI', 'stooq')

Above code breaks because country code is pre-appended for any symbol. For index data (^dji, ^spx etc), there is no need to pre-append country code. This patch fixes that.

  • closes #xxxx
  • tests added / passed
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • added entry to docs/source/whatsnew/vLATEST.txt

`import pandas_datareader.data as web
f = web.DataReader('^DJI', 'stooq')`

Above code breaks because country code is pre-appended for any symbol. For index data (^dji, ^spx etc), there is no need to pre-append country code. This patch fixes that.
@corakwue
Copy link
Contributor Author

I checked, the CI build failures appear to be unrelated to the commit.

@bashtage
Copy link
Contributor

Could you add a test that uses symbols with all patterns covered by the if then block?

@corakwue
Copy link
Contributor Author

Could you add a test that uses symbols with all patterns covered by the if then block?

Done in #592

@addisonlynch
Copy link
Contributor

@bashtage could you merge these stooq PRs if your review is complete? Lots of issues coming up here and on stack in regards to this problem.

@bashtage bashtage merged commit 6d66ae7 into pydata:master Dec 5, 2018
@corakwue corakwue deleted the patch-1 branch December 6, 2018 04:03
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

Successfully merging this pull request may close these issues.

3 participants