Grouping Pandas DataFrame by n days starting in the begining of the day,df['dateonly'] = df['time'].apply(lambda x: x.date())