From 34535a2eee77b07eddf4f77e29528a360f59b52a Mon Sep 17 00:00:00 2001 From: bencekecskes Date: Wed, 18 Dec 2024 10:09:48 +0100 Subject: [PATCH] fix: update last_code_generated in smart_dataframe's __init__.py (#1484) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In SmartDataframe class the last_code_generated property returned _agent.last_code_executed instead of _agent.last_code_generated. In SmartDatalake it is implemented properly. Co-authored-by: Bence Kecskés --- pandasai/smart_dataframe/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):