timeseries.py 文件源码

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

项目:Thymus-timeseries 作者: sidorof 项目源码 文件源码
def convert(self, new_freq, include_partial=True, **kwargs):
        """
        This function returns the timeseries converted to another frequency,
        such as daily to monthly.

        Usage:
            convert(new_freq, include_partial=True, **kwargs)

        The only kwarg is
            weekday=<some value>

        This is used when converting to weekly data. The weekday number
        corresponds to the the datetime.weekday() function.
        """
        if new_freq not in FREQ_IDAYTYPES + FREQ_DAYTYPES:
            raise ValueError(
                "Invalid new frequency: %s" % new_freq)

        return convert(
            self, new_freq, include_partial=include_partial, **kwargs)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号