def get_service_calls_for_train_stages(self, time_first_model, time_second_model):
    first_timestamps = self.get_first_timestamps_for_service_calls()
    if (len(first_timestamps) == 0):
        return (pd.DataFrame(), pd.DataFrame(), pd.DataFrame())
    first_model_to_be_trained = first_timestamps[(pd.isnull(first_timestamps.first_model_train_timestamp) & (first_timestamps.first_request_timestamp <= time_first_model))]
    model_to_be_retrained = first_timestamps[(pd.isnull(first_timestamps.first_model_retrain_timestamp) & (first_timestamps.first_incident_timestamp <= time_second_model))]
    first_timestamps = first_timestamps[(~ pd.isnull(first_timestamps.first_model_retrain_timestamp))]
    return (first_timestamps, first_model_to_be_trained, model_to_be_retrained)
def get_service_calls_for_train_stages(self, time_first_model, time_second_model):
    first_timestamps = self.get_first_timestamps_for_service_calls()
    if (len(first_timestamps) == 0):
        return (pd.DataFrame(), pd.DataFrame(), pd.DataFrame())
    first_model_to_be_trained = first_timestamps[(pd.isnull(first_timestamps.first_model_train_timestamp) & (first_timestamps.first_request_timestamp <= time_first_model))]
    model_to_be_retrained = first_timestamps[(pd.isnull(first_timestamps.first_model_retrain_timestamp) & (first_timestamps.first_incident_timestamp <= time_second_model))]
    first_timestamps = first_timestamps[(~ pd.isnull(first_timestamps.first_model_retrain_timestamp))]
    return (first_timestamps, first_model_to_be_trained, model_to_be_retrained)