摘要: Python和Pandas 时间处理 python标准库包含于日期(date)和时间(time)数据的数据类型,datetime、time以及calendar模块会被经常用到。 datetime以毫秒形式存储日期和时间,datetime.timedelta表示两个datetime对象之间的时间差。给 阅读全文
posted @ 2022-08-10 16:12 FrostyForest 阅读(3496) 评论(0) 推荐(0) 编辑
摘要: selenium模拟浏览器后出现这个bug。 解决方法: 在C:\Users\林海\AppData\Local\Google\Chrome\Application\104.0.5112.81下新建一个104.0.5112.81.manifest文件 内容为: <assembly xmlns='urn 阅读全文
posted @ 2022-08-10 13:00 FrostyForest 阅读(742) 评论(0) 推荐(0) 编辑
摘要: 计算公式 ( 年化收益率 - 无风险收益) / 年化收益波动率, 其中 年化收益率 = (总收益 + 1)^(365.25 / 天数) - 1, 无风险收益 =4%, 年化收益波动率 =stdev(日收益) *sqrt(250) 。 阅读全文
posted @ 2022-08-10 12:04 FrostyForest 阅读(1470) 评论(0) 推荐(0) 编辑