nowcoder['year-month-day'] = pd.to_datetime(nowcoder['date']).dt.date print(nowcoder.groupby(['result','year-month-day']).size())