It is also important to be able to represent periods such as a day, month, or year. This is much like an interval but for a period of time. These scenarios can be modeled by using the PeriodIndex and specifying a specific frequency for the periods in the index.
The following demonstrates by modeling three 1-month periods starting from 2017-01.
And this index can then be used within a Series or DataFrame.