def METHOD_NAME(self, new_data: pd.DataFrame):
    assert (
        len(new_data) <= 1
    ), f"length of new_data must be 1, found: {len(new_data)}"
    self.data = new_data.iloc[-1:]
    self._last_input = self.data[self.vocs.variable_names].to_numpy()[0]
    res = self.vocs.objective_data(new_data).to_numpy()
    assert res.shape == (1, 1)
    self._last_outcome = res[0, 0]
    self._i += 1