c.index = pd.to_datetime([i[:4]+ ':' + str(int(i[6:])*3-2) for i in c.index], format = '%Y:%m')
c = c.to_period("Q")