Assume I\'m having dataframe as shown below. In the data frame we are representing the events occurred on every sec.
Time events_occured 1 2 2