Examples
import numpy as np
import pandas as pd
pd.period_range(start='2018-02-02', end='2019-02-02', freq='M')
If start or end are Period objects, they will be used as anchor endpoints for a PeriodIndex with frequency
matching that of the period_range constructor.
pd.period_range(start=pd.Period('2018Q2', freq='Q'),
end=pd.Period('2018Q3', freq='Q'), freq='M')