TimeFrame.with_periodicity

TimeFrame.with_periodicity(periodicity)[source]

Return a new TimeFrame, with a new periodicity registered.

Parameters:

periodicity (str | Period) – The new periodicity

Return type:

Self

Returns:

A new TimeFrame with a new periodicity set.