ZacAttack ZacAttack -4 years ago 121
Python Question

I am trying to download data from Yahoo Finance using pandasb but nothing 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/ ====================

That's all that I get. I am using python 3.5 on windows 10

Answer Source

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
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download