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)
评论列表
文章目录