ZacAttack ZacAttack - 7 months ago 65
Python Question

I am trying to download data from yahoo finance using pandas but nothin happens?

import as web
import datetime
start = datetime.datetime(2010, 1, 1)

end = datetime.datetime(2013, 1, 27)

f = web.DataReader("ugaz", 'yahoo', start, end)


The above is the code I am currently trying to use to get data from yahoo finance. when I run the code I get this in the python shell 3.5.2 window

==================== RESTART: C:/Users/Zac/Desktop/ ====================

this is all that I get. I am using python 3.5 on windows 10


The first datapoint is


Open           48.360002
High           48.360002
Low            48.360002
Close          48.360002
Volume          0.000000
Adj Close    6045.000287
Name: 2012-02-08 00:00:00, dtype: float64