Skip to content

Commit

Permalink
Update fetch.py
Browse files Browse the repository at this point in the history
getDatePrice now returns the close instead of the adjusted close
  • Loading branch information
AndrewRPorter authored Nov 23, 2017
1 parent a7f5d2e commit bd455a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yahoo_historical/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def getHistorical(self):

def getDatePrice(self):
"""Returns a DataFrame for Date and Price from getHistorical()"""
return self.getHistorical().ix[:,[0,5]]
return self.getHistorical().ix[:,[0,4]]

def getDateVolume(self):
"""Returns a DataFrame for Date and Volume from getHistorical()"""
Expand Down

0 comments on commit bd455a4

Please sign in to comment.