quantlib.time.date.Period.normalize

Period.normalize(self)

Normalizes the units of the period. For example, a period of 12 months will be normalized to 1 year.