zcollection.merging.period.Period.expand#
- Period.expand(duration)[source]#
Expand the size of the period by the duration on both ends.
So before expand:
[-------] ^ ^ ^ ^ ^ ^ ^ 1 2 3 4 5 6 7
After expand(2):
[----------------------] ^ ^ ^ ^ ^ ^ ^ 1 2 3 4 5 6 7
- Parameters:
duration (timedelta64) – The amount to expand the period.
- Return type:
None