def METHOD_NAME(self):
    detections = set()
    previous_time = None
    for row in self.dataframe.to_dict(orient="records"):
        time = self._get_time(row)
        if previous_time is not None and previous_time != time:
            yield previous_time, detections
            detections = set()
        previous_time = time
        detections.add(Detection(
            np.array([[row[col_name]] for col_name in self.state_vector_fields],
                     dtype=np.float_),
            timestamp=time,
            metadata=self._get_metadata(row)))
    # Yield remaining
    yield previous_time, detections