diff --git a/pandasai/smart_dataframe/__init__.py b/pandasai/smart_dataframe/__init__.py index 574fbe28e..756c3cbb6 100644 --- a/pandasai/smart_dataframe/__init__.py +++ b/pandasai/smart_dataframe/__init__.py @@ -171,7 +171,7 @@ def last_prompt_id(self) -> uuid.UUID: @property def last_code_generated(self): - return self._agent.last_code_executed + return self._agent.last_code_generated @property def last_code_executed(self):