DataFrame
一、DataFrame的格式
import jqdata
a=get_price(‘000001.XSHE’,count=5,fields=[‘open’,‘price’])
print(a)
index | open | price |
---|---|---|
2015-12-25 | 9.87 | 9.89 |
2015-12-28 | 9.91 | 9.73 |
2015-12-29 | 9.56 | 9.58 |
2015-12-30 | 9.64 | 9.60 |
2015-12-28 | 9.65 | 9.60 |
二、iloc,loc,ix
loc
参考 https://yq.aliyun.com/articles/620284#6
「python」DataFrame中loc、iloc、ix的区别