I have a dataframe representing people\'s movements. As below
Zone, time, person A, 1, ABC B, 2, ABC A, 3, ABC A, 4, ABC B, 5, ABC A