Indexing periods of time using PeriodIndex

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset