import pandas as pd from pandas_datareader import data import datetime start = datetime.datetime(2016,1,1) end = datetime.date.today() apple = data.DataReader("AAPL", "yahoo", start, end) #type(apple) apple.head()
Date Open High Low Close Adj Close Volume
2016-01-04 102.610001 105.370003 102.000000 105.349998 101.790649 67649400
2016-01-05 105.750000 105.849998 102.410004 102.709999 99.239845 55791000
2016-01-06 100.559998 102.370003 99.870003 100.699997 97.297760 68457400
2016-01-07 98.680000 100.129997 96.430000 96.449997 93.191338 81094400
2016-01-08 98.550003 99.110001 96.760002 96.959999 93.684120 70798000
Python股市数据分析教程:http://blog.csdn.net/xiao_lxl/article/details/53780988
http://blog.csdn.net/xiao_lxl/article/details/53781029
时间: 2024-10-09 12:55:10