__init__.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:Informed-Finance-Canary 作者: Darthone 项目源码 文件源码
def calculate_ema(self, window, name=None, col='Adj_Close'):
        self.set_max_win(window)
        if name is None:
            name = "ema_%s" % (window)
        self.df[name] = pd.ewma(self.df[col], span=window, min_periods=window)
        return name
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号