
股票
文章平均质量分 66
zwy_0309
这个作者很懒,什么都没留下…
展开
-
Python+pandas +画出股票的收盘价的趋势图(笔记)
题目说的好像和股票有关,实际上就是一个时间序列图。但本节主要介绍时间序列的几个常用统计方法。详细如下:1、 画出股票(代码:688022)的收盘价趋势图【脚本】import tushare as tsimport matplotlib.pyplot as pltframe = ts.get_k_data('688022', start='2019-07-22')frame = frame.set_index('date')frame.index = pd.to_datetime(frame.i原创 2020-09-18 09:39:04 · 7803 阅读 · 0 评论 -
Python+pandas+每天股票涨了多少
第一步:得到某支股票历年来的交易数据方法见:https://blog.youkuaiyun.com/zwy_0309/article/details/108217342在此,我使用以下脚本得到股票(代码:688022)从开始时间至现在的行情信息:【脚本】import tushare as tsframe = ts.get_k_data('688022', start='2019-07-22')print(frame)【结果】date open close high low v原创 2020-09-17 11:35:01 · 694 阅读 · 0 评论