5.1 tushare包介绍
股票分析
tushare
http://tushare.org/
安装
pip install Tushare
In [1]:
import tushare as ts
In [5]:
ts.get_k_data("601390") # 中国中铁
Out[5]:
In [4]:
ts.get_k_data("601318")
Out[4]:
In [7]:
df = ts.get_k_data("000016",index=True)
df
Out[7]:
In [9]:
ts.get_k_data("601390",start='2019-01-01')
Out[9]: