Group by multiple time units in pandas data frame,dfts.groupby(lambda x: x.year).std()