Finding start time and end time in a column
问题 I have a data set that has employees clocking in and out. It looks like this (note two entries per employee): Employee Date Time Emp1 1/1/16 06:00 Emp1 1/1/16 13:00 Emp2 1/1/16 09:00 Emp2 1/1/16 17:00 Emp3 1/1/16 11:00 Emp3 1/1/16 18:00 I want to get the data to look like this: Employee Date Start End Emp1 1/1/16 06:00 13:00 Emp2 1/1/16 09:00 17:00 Emp3 1/1/16 11:00 18:00 I would like to get it into a data frame format so that I can do some calculations. I currently have tried df['start'] =