year = lambda x: datetime.strptime(str(x), '%Y%m%d').year
grouped = RPT.reset_index().set_index('RPT_Date').groupby(['STK_ID', year])
for key, df in grouped:
    pass
How to do a 'groupby' by multilevel index in Pandas